aws_s3_bucket_logging

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 {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// ExpectedBucketOwner: string, optional
	ExpectedBucketOwner terra.StringValue `hcl:"expected_bucket_owner,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// TargetBucket: string, required
	TargetBucket terra.StringValue `hcl:"target_bucket,attr" validate:"required"`
	// TargetPrefix: string, required
	TargetPrefix terra.StringValue `hcl:"target_prefix,attr" validate:"required"`
	// TargetGrant: min=0
	TargetGrant []TargetGrant `hcl:"target_grant,block" validate:"min=0"`
	// TargetObjectKeyFormat: optional
	TargetObjectKeyFormat *TargetObjectKeyFormat `hcl:"target_object_key_format,block"`
}

Args contains the configurations for aws_s3_bucket_logging.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asbl *Resource) Attributes() awsS3BucketLoggingAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asbl *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asbl *Resource) State() (*awsS3BucketLoggingState, bool)

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

func (*Resource) StateMust

func (asbl *Resource) StateMust() *awsS3BucketLoggingState

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

func (*Resource) Type

func (asbl *Resource) Type() string

Type returns the Terraform object type for Resource.

type TargetGrant

type TargetGrant struct {
	// Permission: string, required
	Permission terra.StringValue `hcl:"permission,attr" validate:"required"`
	// TargetGrantGrantee: required
	Grantee *TargetGrantGrantee `hcl:"grantee,block" validate:"required"`
}

type TargetGrantAttributes

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

func (TargetGrantAttributes) Grantee

func (TargetGrantAttributes) InternalRef

func (tg TargetGrantAttributes) InternalRef() (terra.Reference, error)

func (TargetGrantAttributes) InternalTokens

func (tg TargetGrantAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetGrantAttributes) InternalWithRef

func (TargetGrantAttributes) Permission

func (tg TargetGrantAttributes) Permission() terra.StringValue

type TargetGrantGrantee

type TargetGrantGrantee struct {
	// EmailAddress: string, optional
	EmailAddress terra.StringValue `hcl:"email_address,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Uri: string, optional
	Uri terra.StringValue `hcl:"uri,attr"`
}

type TargetGrantGranteeAttributes

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

func (TargetGrantGranteeAttributes) DisplayName

func (TargetGrantGranteeAttributes) EmailAddress

func (TargetGrantGranteeAttributes) Id

func (TargetGrantGranteeAttributes) InternalRef

func (TargetGrantGranteeAttributes) InternalTokens

func (g TargetGrantGranteeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetGrantGranteeAttributes) InternalWithRef

func (TargetGrantGranteeAttributes) Type

func (TargetGrantGranteeAttributes) Uri

type TargetGrantGranteeState

type TargetGrantGranteeState struct {
	DisplayName  string `json:"display_name"`
	EmailAddress string `json:"email_address"`
	Id           string `json:"id"`
	Type         string `json:"type"`
	Uri          string `json:"uri"`
}

type TargetGrantState

type TargetGrantState struct {
	Permission string                    `json:"permission"`
	Grantee    []TargetGrantGranteeState `json:"grantee"`
}

type TargetObjectKeyFormat

type TargetObjectKeyFormat struct {
	// TargetObjectKeyFormatPartitionedPrefix: optional
	PartitionedPrefix *TargetObjectKeyFormatPartitionedPrefix `hcl:"partitioned_prefix,block"`
	// TargetObjectKeyFormatSimplePrefix: optional
	SimplePrefix *TargetObjectKeyFormatSimplePrefix `hcl:"simple_prefix,block"`
}

type TargetObjectKeyFormatAttributes

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

func (TargetObjectKeyFormatAttributes) InternalRef

func (tokf TargetObjectKeyFormatAttributes) InternalRef() (terra.Reference, error)

func (TargetObjectKeyFormatAttributes) InternalTokens

func (tokf TargetObjectKeyFormatAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TargetObjectKeyFormatAttributes) InternalWithRef

func (TargetObjectKeyFormatAttributes) PartitionedPrefix

func (TargetObjectKeyFormatAttributes) SimplePrefix

type TargetObjectKeyFormatPartitionedPrefix

type TargetObjectKeyFormatPartitionedPrefix struct {
	// PartitionDateSource: string, required
	PartitionDateSource terra.StringValue `hcl:"partition_date_source,attr" validate:"required"`
}

type TargetObjectKeyFormatPartitionedPrefixAttributes

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

func (TargetObjectKeyFormatPartitionedPrefixAttributes) InternalRef

func (TargetObjectKeyFormatPartitionedPrefixAttributes) InternalTokens

func (TargetObjectKeyFormatPartitionedPrefixAttributes) InternalWithRef

func (TargetObjectKeyFormatPartitionedPrefixAttributes) PartitionDateSource

type TargetObjectKeyFormatPartitionedPrefixState

type TargetObjectKeyFormatPartitionedPrefixState struct {
	PartitionDateSource string `json:"partition_date_source"`
}

type TargetObjectKeyFormatSimplePrefix

type TargetObjectKeyFormatSimplePrefix struct{}

type TargetObjectKeyFormatSimplePrefixAttributes

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

func (TargetObjectKeyFormatSimplePrefixAttributes) InternalRef

func (TargetObjectKeyFormatSimplePrefixAttributes) InternalTokens

func (TargetObjectKeyFormatSimplePrefixAttributes) InternalWithRef

type TargetObjectKeyFormatSimplePrefixState

type TargetObjectKeyFormatSimplePrefixState struct{}

type TargetObjectKeyFormatState

type TargetObjectKeyFormatState struct {
	PartitionedPrefix []TargetObjectKeyFormatPartitionedPrefixState `json:"partitioned_prefix"`
	SimplePrefix      []TargetObjectKeyFormatSimplePrefixState      `json:"simple_prefix"`
}

Jump to

Keyboard shortcuts

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