aws_s3_bucket_inventory

package
v5.45.0 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"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// IncludedObjectVersions: string, required
	IncludedObjectVersions terra.StringValue `hcl:"included_object_versions,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// OptionalFields: set of string, optional
	OptionalFields terra.SetValue[terra.StringValue] `hcl:"optional_fields,attr"`
	// Destination: required
	Destination *Destination `hcl:"destination,block" validate:"required"`
	// Filter: optional
	Filter *Filter `hcl:"filter,block"`
	// Schedule: required
	Schedule *Schedule `hcl:"schedule,block" validate:"required"`
}

Args contains the configurations for aws_s3_bucket_inventory.

type Destination

type Destination struct {
	// DestinationBucket: required
	Bucket *DestinationBucket `hcl:"bucket,block" validate:"required"`
}

type DestinationAttributes

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

func (DestinationAttributes) Bucket

func (DestinationAttributes) InternalRef

func (d DestinationAttributes) InternalRef() (terra.Reference, error)

func (DestinationAttributes) InternalTokens

func (d DestinationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DestinationAttributes) InternalWithRef

type DestinationBucket

type DestinationBucket struct {
	// AccountId: string, optional
	AccountId terra.StringValue `hcl:"account_id,attr"`
	// BucketArn: string, required
	BucketArn terra.StringValue `hcl:"bucket_arn,attr" validate:"required"`
	// Format: string, required
	Format terra.StringValue `hcl:"format,attr" validate:"required"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// DestinationBucketEncryption: optional
	Encryption *DestinationBucketEncryption `hcl:"encryption,block"`
}

type DestinationBucketAttributes

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

func (DestinationBucketAttributes) AccountId

func (DestinationBucketAttributes) BucketArn

func (DestinationBucketAttributes) Encryption

func (DestinationBucketAttributes) Format

func (DestinationBucketAttributes) InternalRef

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

func (DestinationBucketAttributes) InternalTokens

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

func (DestinationBucketAttributes) InternalWithRef

func (DestinationBucketAttributes) Prefix

type DestinationBucketEncryption

type DestinationBucketEncryption struct {
	// DestinationBucketEncryptionSseKms: optional
	SseKms *DestinationBucketEncryptionSseKms `hcl:"sse_kms,block"`
	// DestinationBucketEncryptionSseS3: optional
	SseS3 *DestinationBucketEncryptionSseS3 `hcl:"sse_s3,block"`
}

type DestinationBucketEncryptionAttributes

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

func (DestinationBucketEncryptionAttributes) InternalRef

func (DestinationBucketEncryptionAttributes) InternalTokens

func (DestinationBucketEncryptionAttributes) InternalWithRef

func (DestinationBucketEncryptionAttributes) SseKms

func (DestinationBucketEncryptionAttributes) SseS3

type DestinationBucketEncryptionSseKms

type DestinationBucketEncryptionSseKms struct {
	// KeyId: string, required
	KeyId terra.StringValue `hcl:"key_id,attr" validate:"required"`
}

type DestinationBucketEncryptionSseKmsAttributes

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

func (DestinationBucketEncryptionSseKmsAttributes) InternalRef

func (DestinationBucketEncryptionSseKmsAttributes) InternalTokens

func (DestinationBucketEncryptionSseKmsAttributes) InternalWithRef

func (DestinationBucketEncryptionSseKmsAttributes) KeyId

type DestinationBucketEncryptionSseKmsState

type DestinationBucketEncryptionSseKmsState struct {
	KeyId string `json:"key_id"`
}

type DestinationBucketEncryptionSseS3

type DestinationBucketEncryptionSseS3 struct{}

type DestinationBucketEncryptionSseS3Attributes

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

func (DestinationBucketEncryptionSseS3Attributes) InternalRef

func (DestinationBucketEncryptionSseS3Attributes) InternalTokens

func (DestinationBucketEncryptionSseS3Attributes) InternalWithRef

type DestinationBucketEncryptionSseS3State

type DestinationBucketEncryptionSseS3State struct{}

type DestinationBucketEncryptionState

type DestinationBucketEncryptionState struct {
	SseKms []DestinationBucketEncryptionSseKmsState `json:"sse_kms"`
	SseS3  []DestinationBucketEncryptionSseS3State  `json:"sse_s3"`
}

type DestinationBucketState

type DestinationBucketState struct {
	AccountId  string                             `json:"account_id"`
	BucketArn  string                             `json:"bucket_arn"`
	Format     string                             `json:"format"`
	Prefix     string                             `json:"prefix"`
	Encryption []DestinationBucketEncryptionState `json:"encryption"`
}

type DestinationState

type DestinationState struct {
	Bucket []DestinationBucketState `json:"bucket"`
}

type Filter

type Filter struct {
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
}

type FilterAttributes

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

func (FilterAttributes) InternalRef

func (f FilterAttributes) InternalRef() (terra.Reference, error)

func (FilterAttributes) InternalTokens

func (f FilterAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FilterAttributes) InternalWithRef

func (f FilterAttributes) InternalWithRef(ref terra.Reference) FilterAttributes

func (FilterAttributes) Prefix

func (f FilterAttributes) Prefix() terra.StringValue

type FilterState

type FilterState struct {
	Prefix string `json:"prefix"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asbi *Resource) Attributes() awsS3BucketInventoryAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asbi *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asbi *Resource) State() (*awsS3BucketInventoryState, bool)

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

func (*Resource) StateMust

func (asbi *Resource) StateMust() *awsS3BucketInventoryState

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

func (*Resource) Type

func (asbi *Resource) Type() string

Type returns the Terraform object type for Resource.

type Schedule

type Schedule struct {
	// Frequency: string, required
	Frequency terra.StringValue `hcl:"frequency,attr" validate:"required"`
}

type ScheduleAttributes

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

func (ScheduleAttributes) Frequency

func (s ScheduleAttributes) Frequency() terra.StringValue

func (ScheduleAttributes) InternalRef

func (s ScheduleAttributes) InternalRef() (terra.Reference, error)

func (ScheduleAttributes) InternalTokens

func (s ScheduleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ScheduleAttributes) InternalWithRef

func (s ScheduleAttributes) InternalWithRef(ref terra.Reference) ScheduleAttributes

type ScheduleState

type ScheduleState struct {
	Frequency string `json:"frequency"`
}

Jump to

Keyboard shortcuts

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