google_folder_iam_audit_config

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 {
	// Folder: string, required
	Folder terra.StringValue `hcl:"folder,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Service: string, required
	Service terra.StringValue `hcl:"service,attr" validate:"required"`
	// AuditLogConfig: min=1
	AuditLogConfig []AuditLogConfig `hcl:"audit_log_config,block" validate:"min=1"`
}

Args contains the configurations for google_folder_iam_audit_config.

type AuditLogConfig

type AuditLogConfig 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 AuditLogConfigAttributes

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

func (AuditLogConfigAttributes) ExemptedMembers

func (alc AuditLogConfigAttributes) ExemptedMembers() terra.SetValue[terra.StringValue]

func (AuditLogConfigAttributes) InternalRef

func (alc AuditLogConfigAttributes) InternalRef() (terra.Reference, error)

func (AuditLogConfigAttributes) InternalTokens

func (alc AuditLogConfigAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuditLogConfigAttributes) InternalWithRef

func (AuditLogConfigAttributes) LogType

type AuditLogConfigState

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

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_folder_iam_audit_config.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (gfiac *Resource) Attributes() googleFolderIamAuditConfigAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (gfiac *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (gfiac *Resource) State() (*googleFolderIamAuditConfigState, bool)

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

func (*Resource) StateMust

func (gfiac *Resource) StateMust() *googleFolderIamAuditConfigState

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

func (*Resource) Type

func (gfiac *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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