aws_dynamodb_table

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 {
	// BillingMode: string, optional
	BillingMode terra.StringValue `hcl:"billing_mode,attr"`
	// DeletionProtectionEnabled: bool, optional
	DeletionProtectionEnabled terra.BoolValue `hcl:"deletion_protection_enabled,attr"`
	// HashKey: string, optional
	HashKey terra.StringValue `hcl:"hash_key,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// RangeKey: string, optional
	RangeKey terra.StringValue `hcl:"range_key,attr"`
	// ReadCapacity: number, optional
	ReadCapacity terra.NumberValue `hcl:"read_capacity,attr"`
	// RestoreDateTime: string, optional
	RestoreDateTime terra.StringValue `hcl:"restore_date_time,attr"`
	// RestoreSourceName: string, optional
	RestoreSourceName terra.StringValue `hcl:"restore_source_name,attr"`
	// RestoreToLatestTime: bool, optional
	RestoreToLatestTime terra.BoolValue `hcl:"restore_to_latest_time,attr"`
	// StreamEnabled: bool, optional
	StreamEnabled terra.BoolValue `hcl:"stream_enabled,attr"`
	// StreamViewType: string, optional
	StreamViewType terra.StringValue `hcl:"stream_view_type,attr"`
	// TableClass: string, optional
	TableClass terra.StringValue `hcl:"table_class,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// WriteCapacity: number, optional
	WriteCapacity terra.NumberValue `hcl:"write_capacity,attr"`
	// Attribute: min=0
	Attribute []Attribute `hcl:"attribute,block" validate:"min=0"`
	// GlobalSecondaryIndex: min=0
	GlobalSecondaryIndex []GlobalSecondaryIndex `hcl:"global_secondary_index,block" validate:"min=0"`
	// ImportTable: optional
	ImportTable *ImportTable `hcl:"import_table,block"`
	// LocalSecondaryIndex: min=0
	LocalSecondaryIndex []LocalSecondaryIndex `hcl:"local_secondary_index,block" validate:"min=0"`
	// PointInTimeRecovery: optional
	PointInTimeRecovery *PointInTimeRecovery `hcl:"point_in_time_recovery,block"`
	// Replica: min=0
	Replica []Replica `hcl:"replica,block" validate:"min=0"`
	// ServerSideEncryption: optional
	ServerSideEncryption *ServerSideEncryption `hcl:"server_side_encryption,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
	// Ttl: optional
	Ttl *Ttl `hcl:"ttl,block"`
}

Args contains the configurations for aws_dynamodb_table.

type Attribute

type Attribute struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type AttributeAttributes

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

func (AttributeAttributes) InternalRef

func (a AttributeAttributes) InternalRef() (terra.Reference, error)

func (AttributeAttributes) InternalTokens

func (a AttributeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AttributeAttributes) InternalWithRef

func (a AttributeAttributes) InternalWithRef(ref terra.Reference) AttributeAttributes

func (AttributeAttributes) Name

func (AttributeAttributes) Type

type AttributeState

type AttributeState struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// ServerSideEncryption: optional
	ServerSideEncryption *DataServerSideEncryption `hcl:"server_side_encryption,block"`
}

DataArgs contains the configurations for aws_dynamodb_table.

type DataAttributeAttributes

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

func (DataAttributeAttributes) InternalRef

func (a DataAttributeAttributes) InternalRef() (terra.Reference, error)

func (DataAttributeAttributes) InternalTokens

func (a DataAttributeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataAttributeAttributes) InternalWithRef

func (DataAttributeAttributes) Name

func (DataAttributeAttributes) Type

type DataAttributeState

type DataAttributeState struct {
	Name string `json:"name"`
	Type string `json:"type"`
}

type DataGlobalSecondaryIndexAttributes

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

func (DataGlobalSecondaryIndexAttributes) HashKey

func (DataGlobalSecondaryIndexAttributes) InternalRef

func (DataGlobalSecondaryIndexAttributes) InternalTokens

func (gsi DataGlobalSecondaryIndexAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataGlobalSecondaryIndexAttributes) InternalWithRef

func (DataGlobalSecondaryIndexAttributes) Name

func (DataGlobalSecondaryIndexAttributes) NonKeyAttributes

func (DataGlobalSecondaryIndexAttributes) ProjectionType

func (DataGlobalSecondaryIndexAttributes) RangeKey

func (DataGlobalSecondaryIndexAttributes) ReadCapacity

func (DataGlobalSecondaryIndexAttributes) WriteCapacity

type DataGlobalSecondaryIndexState

type DataGlobalSecondaryIndexState struct {
	HashKey          string   `json:"hash_key"`
	Name             string   `json:"name"`
	NonKeyAttributes []string `json:"non_key_attributes"`
	ProjectionType   string   `json:"projection_type"`
	RangeKey         string   `json:"range_key"`
	ReadCapacity     float64  `json:"read_capacity"`
	WriteCapacity    float64  `json:"write_capacity"`
}

type DataLocalSecondaryIndexAttributes

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

func (DataLocalSecondaryIndexAttributes) InternalRef

func (DataLocalSecondaryIndexAttributes) InternalTokens

func (lsi DataLocalSecondaryIndexAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataLocalSecondaryIndexAttributes) InternalWithRef

func (DataLocalSecondaryIndexAttributes) Name

func (DataLocalSecondaryIndexAttributes) NonKeyAttributes

func (DataLocalSecondaryIndexAttributes) ProjectionType

func (DataLocalSecondaryIndexAttributes) RangeKey

type DataLocalSecondaryIndexState

type DataLocalSecondaryIndexState struct {
	Name             string   `json:"name"`
	NonKeyAttributes []string `json:"non_key_attributes"`
	ProjectionType   string   `json:"projection_type"`
	RangeKey         string   `json:"range_key"`
}

type DataPointInTimeRecoveryAttributes

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

func (DataPointInTimeRecoveryAttributes) Enabled

func (DataPointInTimeRecoveryAttributes) InternalRef

func (DataPointInTimeRecoveryAttributes) InternalTokens

func (pitr DataPointInTimeRecoveryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataPointInTimeRecoveryAttributes) InternalWithRef

type DataPointInTimeRecoveryState

type DataPointInTimeRecoveryState struct {
	Enabled bool `json:"enabled"`
}

type DataReplicaAttributes

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

func (DataReplicaAttributes) InternalRef

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

func (DataReplicaAttributes) InternalTokens

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

func (DataReplicaAttributes) InternalWithRef

func (DataReplicaAttributes) KmsKeyArn

func (r DataReplicaAttributes) KmsKeyArn() terra.StringValue

func (DataReplicaAttributes) RegionName

func (r DataReplicaAttributes) RegionName() terra.StringValue

type DataReplicaState

type DataReplicaState struct {
	KmsKeyArn  string `json:"kms_key_arn"`
	RegionName string `json:"region_name"`
}

type DataServerSideEncryption

type DataServerSideEncryption struct{}

type DataServerSideEncryptionAttributes

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

func (DataServerSideEncryptionAttributes) Enabled

func (DataServerSideEncryptionAttributes) InternalRef

func (DataServerSideEncryptionAttributes) InternalTokens

func (sse DataServerSideEncryptionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataServerSideEncryptionAttributes) InternalWithRef

func (DataServerSideEncryptionAttributes) KmsKeyArn

type DataServerSideEncryptionState

type DataServerSideEncryptionState struct {
	Enabled   bool   `json:"enabled"`
	KmsKeyArn string `json:"kms_key_arn"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_dynamodb_table.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (adt *DataSource) Attributes() dataAwsDynamodbTableAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (adt *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (adt *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTtlAttributes

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

func (DataTtlAttributes) AttributeName

func (t DataTtlAttributes) AttributeName() terra.StringValue

func (DataTtlAttributes) Enabled

func (t DataTtlAttributes) Enabled() terra.BoolValue

func (DataTtlAttributes) InternalRef

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

func (DataTtlAttributes) InternalTokens

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

func (DataTtlAttributes) InternalWithRef

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

type DataTtlState

type DataTtlState struct {
	AttributeName string `json:"attribute_name"`
	Enabled       bool   `json:"enabled"`
}

type GlobalSecondaryIndex

type GlobalSecondaryIndex struct {
	// HashKey: string, required
	HashKey terra.StringValue `hcl:"hash_key,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NonKeyAttributes: set of string, optional
	NonKeyAttributes terra.SetValue[terra.StringValue] `hcl:"non_key_attributes,attr"`
	// ProjectionType: string, required
	ProjectionType terra.StringValue `hcl:"projection_type,attr" validate:"required"`
	// RangeKey: string, optional
	RangeKey terra.StringValue `hcl:"range_key,attr"`
	// ReadCapacity: number, optional
	ReadCapacity terra.NumberValue `hcl:"read_capacity,attr"`
	// WriteCapacity: number, optional
	WriteCapacity terra.NumberValue `hcl:"write_capacity,attr"`
}

type GlobalSecondaryIndexAttributes

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

func (GlobalSecondaryIndexAttributes) HashKey

func (GlobalSecondaryIndexAttributes) InternalRef

func (gsi GlobalSecondaryIndexAttributes) InternalRef() (terra.Reference, error)

func (GlobalSecondaryIndexAttributes) InternalTokens

func (gsi GlobalSecondaryIndexAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GlobalSecondaryIndexAttributes) InternalWithRef

func (GlobalSecondaryIndexAttributes) Name

func (GlobalSecondaryIndexAttributes) NonKeyAttributes

func (GlobalSecondaryIndexAttributes) ProjectionType

func (gsi GlobalSecondaryIndexAttributes) ProjectionType() terra.StringValue

func (GlobalSecondaryIndexAttributes) RangeKey

func (GlobalSecondaryIndexAttributes) ReadCapacity

func (GlobalSecondaryIndexAttributes) WriteCapacity

func (gsi GlobalSecondaryIndexAttributes) WriteCapacity() terra.NumberValue

type GlobalSecondaryIndexState

type GlobalSecondaryIndexState struct {
	HashKey          string   `json:"hash_key"`
	Name             string   `json:"name"`
	NonKeyAttributes []string `json:"non_key_attributes"`
	ProjectionType   string   `json:"projection_type"`
	RangeKey         string   `json:"range_key"`
	ReadCapacity     float64  `json:"read_capacity"`
	WriteCapacity    float64  `json:"write_capacity"`
}

type ImportTable

type ImportTable struct {
	// InputCompressionType: string, optional
	InputCompressionType terra.StringValue `hcl:"input_compression_type,attr"`
	// InputFormat: string, required
	InputFormat terra.StringValue `hcl:"input_format,attr" validate:"required"`
	// ImportTableInputFormatOptions: optional
	InputFormatOptions *ImportTableInputFormatOptions `hcl:"input_format_options,block"`
	// ImportTableS3BucketSource: required
	S3BucketSource *ImportTableS3BucketSource `hcl:"s3_bucket_source,block" validate:"required"`
}

type ImportTableAttributes

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

func (ImportTableAttributes) InputCompressionType

func (it ImportTableAttributes) InputCompressionType() terra.StringValue

func (ImportTableAttributes) InputFormat

func (it ImportTableAttributes) InputFormat() terra.StringValue

func (ImportTableAttributes) InputFormatOptions

func (ImportTableAttributes) InternalRef

func (it ImportTableAttributes) InternalRef() (terra.Reference, error)

func (ImportTableAttributes) InternalTokens

func (it ImportTableAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ImportTableAttributes) InternalWithRef

func (ImportTableAttributes) S3BucketSource

type ImportTableInputFormatOptions

type ImportTableInputFormatOptions struct {
	// ImportTableInputFormatOptionsCsv: optional
	Csv *ImportTableInputFormatOptionsCsv `hcl:"csv,block"`
}

type ImportTableInputFormatOptionsAttributes

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

func (ImportTableInputFormatOptionsAttributes) Csv

func (ImportTableInputFormatOptionsAttributes) InternalRef

func (ImportTableInputFormatOptionsAttributes) InternalTokens

func (ImportTableInputFormatOptionsAttributes) InternalWithRef

type ImportTableInputFormatOptionsCsv

type ImportTableInputFormatOptionsCsv struct {
	// Delimiter: string, optional
	Delimiter terra.StringValue `hcl:"delimiter,attr"`
	// HeaderList: set of string, optional
	HeaderList terra.SetValue[terra.StringValue] `hcl:"header_list,attr"`
}

type ImportTableInputFormatOptionsCsvAttributes

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

func (ImportTableInputFormatOptionsCsvAttributes) Delimiter

func (ImportTableInputFormatOptionsCsvAttributes) HeaderList

func (ImportTableInputFormatOptionsCsvAttributes) InternalRef

func (ImportTableInputFormatOptionsCsvAttributes) InternalTokens

func (ImportTableInputFormatOptionsCsvAttributes) InternalWithRef

type ImportTableInputFormatOptionsCsvState

type ImportTableInputFormatOptionsCsvState struct {
	Delimiter  string   `json:"delimiter"`
	HeaderList []string `json:"header_list"`
}

type ImportTableInputFormatOptionsState

type ImportTableInputFormatOptionsState struct {
	Csv []ImportTableInputFormatOptionsCsvState `json:"csv"`
}

type ImportTableS3BucketSource

type ImportTableS3BucketSource struct {
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// BucketOwner: string, optional
	BucketOwner terra.StringValue `hcl:"bucket_owner,attr"`
	// KeyPrefix: string, optional
	KeyPrefix terra.StringValue `hcl:"key_prefix,attr"`
}

type ImportTableS3BucketSourceAttributes

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

func (ImportTableS3BucketSourceAttributes) Bucket

func (ImportTableS3BucketSourceAttributes) BucketOwner

func (ImportTableS3BucketSourceAttributes) InternalRef

func (ImportTableS3BucketSourceAttributes) InternalTokens

func (sbs ImportTableS3BucketSourceAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ImportTableS3BucketSourceAttributes) InternalWithRef

func (ImportTableS3BucketSourceAttributes) KeyPrefix

type ImportTableS3BucketSourceState

type ImportTableS3BucketSourceState struct {
	Bucket      string `json:"bucket"`
	BucketOwner string `json:"bucket_owner"`
	KeyPrefix   string `json:"key_prefix"`
}

type ImportTableState

type ImportTableState struct {
	InputCompressionType string                               `json:"input_compression_type"`
	InputFormat          string                               `json:"input_format"`
	InputFormatOptions   []ImportTableInputFormatOptionsState `json:"input_format_options"`
	S3BucketSource       []ImportTableS3BucketSourceState     `json:"s3_bucket_source"`
}

type LocalSecondaryIndex

type LocalSecondaryIndex struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// NonKeyAttributes: list of string, optional
	NonKeyAttributes terra.ListValue[terra.StringValue] `hcl:"non_key_attributes,attr"`
	// ProjectionType: string, required
	ProjectionType terra.StringValue `hcl:"projection_type,attr" validate:"required"`
	// RangeKey: string, required
	RangeKey terra.StringValue `hcl:"range_key,attr" validate:"required"`
}

type LocalSecondaryIndexAttributes

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

func (LocalSecondaryIndexAttributes) InternalRef

func (lsi LocalSecondaryIndexAttributes) InternalRef() (terra.Reference, error)

func (LocalSecondaryIndexAttributes) InternalTokens

func (lsi LocalSecondaryIndexAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LocalSecondaryIndexAttributes) InternalWithRef

func (LocalSecondaryIndexAttributes) Name

func (LocalSecondaryIndexAttributes) NonKeyAttributes

func (LocalSecondaryIndexAttributes) ProjectionType

func (lsi LocalSecondaryIndexAttributes) ProjectionType() terra.StringValue

func (LocalSecondaryIndexAttributes) RangeKey

type LocalSecondaryIndexState

type LocalSecondaryIndexState struct {
	Name             string   `json:"name"`
	NonKeyAttributes []string `json:"non_key_attributes"`
	ProjectionType   string   `json:"projection_type"`
	RangeKey         string   `json:"range_key"`
}

type PointInTimeRecovery

type PointInTimeRecovery struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
}

type PointInTimeRecoveryAttributes

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

func (PointInTimeRecoveryAttributes) Enabled

func (PointInTimeRecoveryAttributes) InternalRef

func (pitr PointInTimeRecoveryAttributes) InternalRef() (terra.Reference, error)

func (PointInTimeRecoveryAttributes) InternalTokens

func (pitr PointInTimeRecoveryAttributes) InternalTokens() (hclwrite.Tokens, error)

func (PointInTimeRecoveryAttributes) InternalWithRef

type PointInTimeRecoveryState

type PointInTimeRecoveryState struct {
	Enabled bool `json:"enabled"`
}

type Replica

type Replica struct {
	// KmsKeyArn: string, optional
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr"`
	// PointInTimeRecovery: bool, optional
	PointInTimeRecovery terra.BoolValue `hcl:"point_in_time_recovery,attr"`
	// PropagateTags: bool, optional
	PropagateTags terra.BoolValue `hcl:"propagate_tags,attr"`
	// RegionName: string, required
	RegionName terra.StringValue `hcl:"region_name,attr" validate:"required"`
}

type ReplicaAttributes

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

func (ReplicaAttributes) Arn

func (ReplicaAttributes) InternalRef

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

func (ReplicaAttributes) InternalTokens

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

func (ReplicaAttributes) InternalWithRef

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

func (ReplicaAttributes) KmsKeyArn

func (r ReplicaAttributes) KmsKeyArn() terra.StringValue

func (ReplicaAttributes) PointInTimeRecovery

func (r ReplicaAttributes) PointInTimeRecovery() terra.BoolValue

func (ReplicaAttributes) PropagateTags

func (r ReplicaAttributes) PropagateTags() terra.BoolValue

func (ReplicaAttributes) RegionName

func (r ReplicaAttributes) RegionName() terra.StringValue

func (ReplicaAttributes) StreamArn

func (r ReplicaAttributes) StreamArn() terra.StringValue

func (ReplicaAttributes) StreamLabel

func (r ReplicaAttributes) StreamLabel() terra.StringValue

type ReplicaState

type ReplicaState struct {
	Arn                 string `json:"arn"`
	KmsKeyArn           string `json:"kms_key_arn"`
	PointInTimeRecovery bool   `json:"point_in_time_recovery"`
	PropagateTags       bool   `json:"propagate_tags"`
	RegionName          string `json:"region_name"`
	StreamArn           string `json:"stream_arn"`
	StreamLabel         string `json:"stream_label"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (adt *Resource) Attributes() awsDynamodbTableAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (adt *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (adt *Resource) State() (*awsDynamodbTableState, bool)

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

func (*Resource) StateMust

func (adt *Resource) StateMust() *awsDynamodbTableState

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

func (*Resource) Type

func (adt *Resource) Type() string

Type returns the Terraform object type for Resource.

type ServerSideEncryption

type ServerSideEncryption struct {
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// KmsKeyArn: string, optional
	KmsKeyArn terra.StringValue `hcl:"kms_key_arn,attr"`
}

type ServerSideEncryptionAttributes

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

func (ServerSideEncryptionAttributes) Enabled

func (ServerSideEncryptionAttributes) InternalRef

func (sse ServerSideEncryptionAttributes) InternalRef() (terra.Reference, error)

func (ServerSideEncryptionAttributes) InternalTokens

func (sse ServerSideEncryptionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServerSideEncryptionAttributes) InternalWithRef

func (ServerSideEncryptionAttributes) KmsKeyArn

type ServerSideEncryptionState

type ServerSideEncryptionState struct {
	Enabled   bool   `json:"enabled"`
	KmsKeyArn string `json:"kms_key_arn"`
}

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"`
}

type Ttl

type Ttl struct {
	// AttributeName: string, required
	AttributeName terra.StringValue `hcl:"attribute_name,attr" validate:"required"`
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
}

type TtlAttributes

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

func (TtlAttributes) AttributeName

func (t TtlAttributes) AttributeName() terra.StringValue

func (TtlAttributes) Enabled

func (t TtlAttributes) Enabled() terra.BoolValue

func (TtlAttributes) InternalRef

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

func (TtlAttributes) InternalTokens

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

func (TtlAttributes) InternalWithRef

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

type TtlState

type TtlState struct {
	AttributeName string `json:"attribute_name"`
	Enabled       bool   `json:"enabled"`
}

Jump to

Keyboard shortcuts

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