google_iam_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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// AuditConfig: min=0
	AuditConfig []DataAuditConfig `hcl:"audit_config,block" validate:"min=0"`
	// Binding: min=0
	Binding []DataBinding `hcl:"binding,block" validate:"min=0"`
}

DataArgs contains the configurations for google_iam_policy.

type DataAuditConfig

type DataAuditConfig struct {
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
	// AuditConfigAuditLogConfigs: min=1
	AuditLogConfigs []DataAuditConfigAuditLogConfigs `hcl:"audit_log_configs,block" validate:"min=1"`
}

type DataAuditConfigAttributes

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

func (DataAuditConfigAttributes) AuditLogConfigs

func (DataAuditConfigAttributes) InternalRef

func (ac DataAuditConfigAttributes) InternalRef() (terra.Reference, error)

func (DataAuditConfigAttributes) InternalTokens

func (ac DataAuditConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataAuditConfigAttributes) InternalWithRef

func (DataAuditConfigAttributes) Service

type DataAuditConfigAuditLogConfigs

type DataAuditConfigAuditLogConfigs struct {
	// ExemptedMembers: set of string, optional
	ExemptedMembers terra.SetValue[terra.StringValue] `hcl:"exempted_members,attr"`
	// LogType: string, required
	LogType terra.StringValue `hcl:"log_type,attr" validate:"required"`
}

type DataAuditConfigAuditLogConfigsAttributes

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

func (DataAuditConfigAuditLogConfigsAttributes) ExemptedMembers

func (DataAuditConfigAuditLogConfigsAttributes) InternalRef

func (DataAuditConfigAuditLogConfigsAttributes) InternalTokens

func (DataAuditConfigAuditLogConfigsAttributes) InternalWithRef

func (DataAuditConfigAuditLogConfigsAttributes) LogType

type DataAuditConfigAuditLogConfigsState

type DataAuditConfigAuditLogConfigsState struct {
	ExemptedMembers []string `json:"exempted_members"`
	LogType         string   `json:"log_type"`
}

type DataAuditConfigState

type DataAuditConfigState struct {
	Service         string                                `json:"service"`
	AuditLogConfigs []DataAuditConfigAuditLogConfigsState `json:"audit_log_configs"`
}

type DataBinding

type DataBinding struct {
	// Members: set of string, required
	Members terra.SetValue[terra.StringValue] `hcl:"members,attr" validate:"required"`
	// Role: string, required
	Role terra.StringValue `hcl:"role,attr" validate:"required"`
	// BindingCondition: optional
	Condition *DataBindingCondition `hcl:"condition,block"`
}

type DataBindingAttributes

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

func (DataBindingAttributes) Condition

func (DataBindingAttributes) InternalRef

func (b DataBindingAttributes) InternalRef() (terra.Reference, error)

func (DataBindingAttributes) InternalTokens

func (b DataBindingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataBindingAttributes) InternalWithRef

func (DataBindingAttributes) Members

func (DataBindingAttributes) Role

type DataBindingCondition

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

type DataBindingConditionAttributes

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

func (DataBindingConditionAttributes) Description

func (DataBindingConditionAttributes) Expression

func (DataBindingConditionAttributes) InternalRef

func (DataBindingConditionAttributes) InternalTokens

func (c DataBindingConditionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataBindingConditionAttributes) InternalWithRef

func (DataBindingConditionAttributes) Title

type DataBindingConditionState

type DataBindingConditionState struct {
	Description string `json:"description"`
	Expression  string `json:"expression"`
	Title       string `json:"title"`
}

type DataBindingState

type DataBindingState struct {
	Members   []string                    `json:"members"`
	Role      string                      `json:"role"`
	Condition []DataBindingConditionState `json:"condition"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource google_iam_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (gip *DataSource) Attributes() dataGoogleIamPolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (gip *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (gip *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (gip *DataSource) LocalName() string

LocalName returns the local name for DataSource.

Jump to

Keyboard shortcuts

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