google_iam_access_boundary_policy

package
v0.0.0-...-4deecce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// DisplayName: string, optional
	DisplayName terra.StringValue `hcl:"display_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Parent: string, required
	Parent terra.StringValue `hcl:"parent,attr" validate:"required"`
	// Rules: min=1
	Rules []Rules `hcl:"rules,block" validate:"min=1"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for google_iam_access_boundary_policy.

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource google_iam_access_boundary_policy.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (giabp *Resource) Attributes() googleIamAccessBoundaryPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (giabp *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (giabp *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (giabp *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (giabp *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (giabp *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (giabp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (giabp *Resource) State() (*googleIamAccessBoundaryPolicyState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (giabp *Resource) StateMust() *googleIamAccessBoundaryPolicyState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (giabp *Resource) Type() string

Type returns the Terraform object type for Resource.

type Rules

type Rules struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// RulesAccessBoundaryRule: optional
	AccessBoundaryRule *RulesAccessBoundaryRule `hcl:"access_boundary_rule,block"`
}

type RulesAccessBoundaryRule

type RulesAccessBoundaryRule struct {
	// AvailablePermissions: list of string, optional
	AvailablePermissions terra.ListValue[terra.StringValue] `hcl:"available_permissions,attr"`
	// AvailableResource: string, optional
	AvailableResource terra.StringValue `hcl:"available_resource,attr"`
	// RulesAccessBoundaryRuleAvailabilityCondition: optional
	AvailabilityCondition *RulesAccessBoundaryRuleAvailabilityCondition `hcl:"availability_condition,block"`
}

type RulesAccessBoundaryRuleAttributes

type RulesAccessBoundaryRuleAttributes struct {
	// contains filtered or unexported fields
}

func (RulesAccessBoundaryRuleAttributes) AvailabilityCondition

func (RulesAccessBoundaryRuleAttributes) AvailablePermissions

func (RulesAccessBoundaryRuleAttributes) AvailableResource

func (abr RulesAccessBoundaryRuleAttributes) AvailableResource() terra.StringValue

func (RulesAccessBoundaryRuleAttributes) InternalRef

func (RulesAccessBoundaryRuleAttributes) InternalTokens

func (abr RulesAccessBoundaryRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RulesAccessBoundaryRuleAttributes) InternalWithRef

type RulesAccessBoundaryRuleAvailabilityCondition

type RulesAccessBoundaryRuleAvailabilityCondition struct {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Expression: string, required
	Expression terra.StringValue `hcl:"expression,attr" validate:"required"`
	// Location: string, optional
	Location terra.StringValue `hcl:"location,attr"`
	// Title: string, optional
	Title terra.StringValue `hcl:"title,attr"`
}

type RulesAccessBoundaryRuleAvailabilityConditionAttributes

type RulesAccessBoundaryRuleAvailabilityConditionAttributes struct {
	// contains filtered or unexported fields
}

func (RulesAccessBoundaryRuleAvailabilityConditionAttributes) Description

func (RulesAccessBoundaryRuleAvailabilityConditionAttributes) Expression

func (RulesAccessBoundaryRuleAvailabilityConditionAttributes) InternalRef

func (RulesAccessBoundaryRuleAvailabilityConditionAttributes) InternalTokens

func (RulesAccessBoundaryRuleAvailabilityConditionAttributes) InternalWithRef

func (RulesAccessBoundaryRuleAvailabilityConditionAttributes) Location

func (RulesAccessBoundaryRuleAvailabilityConditionAttributes) Title

type RulesAccessBoundaryRuleAvailabilityConditionState

type RulesAccessBoundaryRuleAvailabilityConditionState struct {
	Description string `json:"description"`
	Expression  string `json:"expression"`
	Location    string `json:"location"`
	Title       string `json:"title"`
}

type RulesAccessBoundaryRuleState

type RulesAccessBoundaryRuleState struct {
	AvailablePermissions  []string                                            `json:"available_permissions"`
	AvailableResource     string                                              `json:"available_resource"`
	AvailabilityCondition []RulesAccessBoundaryRuleAvailabilityConditionState `json:"availability_condition"`
}

type RulesAttributes

type RulesAttributes struct {
	// contains filtered or unexported fields
}

func (RulesAttributes) AccessBoundaryRule

func (RulesAttributes) Description

func (r RulesAttributes) Description() terra.StringValue

func (RulesAttributes) InternalRef

func (r RulesAttributes) InternalRef() (terra.Reference, error)

func (RulesAttributes) InternalTokens

func (r RulesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RulesAttributes) InternalWithRef

func (r RulesAttributes) InternalWithRef(ref terra.Reference) RulesAttributes

type RulesState

type RulesState struct {
	Description        string                         `json:"description"`
	AccessBoundaryRule []RulesAccessBoundaryRuleState `json:"access_boundary_rule"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL