aws_s3_bucket_replication_configuration

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"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Role: string, required
	Role terra.StringValue `hcl:"role,attr" validate:"required"`
	// Token: string, optional
	Token terra.StringValue `hcl:"token,attr"`
	// Rule: min=1,max=1000
	Rule []Rule `hcl:"rule,block" validate:"min=1,max=1000"`
}

Args contains the configurations for aws_s3_bucket_replication_configuration.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asbrc *Resource) Attributes() awsS3BucketReplicationConfigurationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asbrc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asbrc *Resource) State() (*awsS3BucketReplicationConfigurationState, bool)

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

func (*Resource) StateMust

func (asbrc *Resource) StateMust() *awsS3BucketReplicationConfigurationState

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

func (*Resource) Type

func (asbrc *Resource) Type() string

Type returns the Terraform object type for Resource.

type Rule

type Rule struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Priority: number, optional
	Priority terra.NumberValue `hcl:"priority,attr"`
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
	// RuleDeleteMarkerReplication: optional
	DeleteMarkerReplication *RuleDeleteMarkerReplication `hcl:"delete_marker_replication,block"`
	// RuleDestination: required
	Destination *RuleDestination `hcl:"destination,block" validate:"required"`
	// RuleExistingObjectReplication: optional
	ExistingObjectReplication *RuleExistingObjectReplication `hcl:"existing_object_replication,block"`
	// RuleFilter: optional
	Filter *RuleFilter `hcl:"filter,block"`
	// RuleSourceSelectionCriteria: optional
	SourceSelectionCriteria *RuleSourceSelectionCriteria `hcl:"source_selection_criteria,block"`
}

type RuleAttributes

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

func (RuleAttributes) DeleteMarkerReplication

func (RuleAttributes) Destination

func (RuleAttributes) ExistingObjectReplication

func (RuleAttributes) Filter

func (RuleAttributes) Id

func (RuleAttributes) InternalRef

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

func (RuleAttributes) InternalTokens

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

func (RuleAttributes) InternalWithRef

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

func (RuleAttributes) Prefix

func (r RuleAttributes) Prefix() terra.StringValue

func (RuleAttributes) Priority

func (r RuleAttributes) Priority() terra.NumberValue

func (RuleAttributes) SourceSelectionCriteria

func (RuleAttributes) Status

func (r RuleAttributes) Status() terra.StringValue

type RuleDeleteMarkerReplication

type RuleDeleteMarkerReplication struct {
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
}

type RuleDeleteMarkerReplicationAttributes

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

func (RuleDeleteMarkerReplicationAttributes) InternalRef

func (RuleDeleteMarkerReplicationAttributes) InternalTokens

func (RuleDeleteMarkerReplicationAttributes) InternalWithRef

func (RuleDeleteMarkerReplicationAttributes) Status

type RuleDeleteMarkerReplicationState

type RuleDeleteMarkerReplicationState struct {
	Status string `json:"status"`
}

type RuleDestination

type RuleDestination struct {
	// Account: string, optional
	Account terra.StringValue `hcl:"account,attr"`
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// StorageClass: string, optional
	StorageClass terra.StringValue `hcl:"storage_class,attr"`
	// RuleDestinationAccessControlTranslation: optional
	AccessControlTranslation *RuleDestinationAccessControlTranslation `hcl:"access_control_translation,block"`
	// RuleDestinationEncryptionConfiguration: optional
	EncryptionConfiguration *RuleDestinationEncryptionConfiguration `hcl:"encryption_configuration,block"`
	// RuleDestinationMetrics: optional
	Metrics *RuleDestinationMetrics `hcl:"metrics,block"`
	// RuleDestinationReplicationTime: optional
	ReplicationTime *RuleDestinationReplicationTime `hcl:"replication_time,block"`
}

type RuleDestinationAccessControlTranslation

type RuleDestinationAccessControlTranslation struct {
	// Owner: string, required
	Owner terra.StringValue `hcl:"owner,attr" validate:"required"`
}

type RuleDestinationAccessControlTranslationAttributes

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

func (RuleDestinationAccessControlTranslationAttributes) InternalRef

func (RuleDestinationAccessControlTranslationAttributes) InternalTokens

func (RuleDestinationAccessControlTranslationAttributes) InternalWithRef

func (RuleDestinationAccessControlTranslationAttributes) Owner

type RuleDestinationAccessControlTranslationState

type RuleDestinationAccessControlTranslationState struct {
	Owner string `json:"owner"`
}

type RuleDestinationAttributes

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

func (RuleDestinationAttributes) AccessControlTranslation

func (RuleDestinationAttributes) Account

func (RuleDestinationAttributes) Bucket

func (RuleDestinationAttributes) EncryptionConfiguration

func (RuleDestinationAttributes) InternalRef

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

func (RuleDestinationAttributes) InternalTokens

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

func (RuleDestinationAttributes) InternalWithRef

func (RuleDestinationAttributes) Metrics

func (RuleDestinationAttributes) ReplicationTime

func (RuleDestinationAttributes) StorageClass

func (d RuleDestinationAttributes) StorageClass() terra.StringValue

type RuleDestinationEncryptionConfiguration

type RuleDestinationEncryptionConfiguration struct {
	// ReplicaKmsKeyId: string, required
	ReplicaKmsKeyId terra.StringValue `hcl:"replica_kms_key_id,attr" validate:"required"`
}

type RuleDestinationEncryptionConfigurationAttributes

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

func (RuleDestinationEncryptionConfigurationAttributes) InternalRef

func (RuleDestinationEncryptionConfigurationAttributes) InternalTokens

func (RuleDestinationEncryptionConfigurationAttributes) InternalWithRef

func (RuleDestinationEncryptionConfigurationAttributes) ReplicaKmsKeyId

type RuleDestinationEncryptionConfigurationState

type RuleDestinationEncryptionConfigurationState struct {
	ReplicaKmsKeyId string `json:"replica_kms_key_id"`
}

type RuleDestinationMetrics

type RuleDestinationMetrics struct {
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
	// RuleDestinationMetricsEventThreshold: optional
	EventThreshold *RuleDestinationMetricsEventThreshold `hcl:"event_threshold,block"`
}

type RuleDestinationMetricsAttributes

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

func (RuleDestinationMetricsAttributes) EventThreshold

func (RuleDestinationMetricsAttributes) InternalRef

func (RuleDestinationMetricsAttributes) InternalTokens

func (m RuleDestinationMetricsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RuleDestinationMetricsAttributes) InternalWithRef

func (RuleDestinationMetricsAttributes) Status

type RuleDestinationMetricsEventThreshold

type RuleDestinationMetricsEventThreshold struct {
	// Minutes: number, required
	Minutes terra.NumberValue `hcl:"minutes,attr" validate:"required"`
}

type RuleDestinationMetricsEventThresholdAttributes

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

func (RuleDestinationMetricsEventThresholdAttributes) InternalRef

func (RuleDestinationMetricsEventThresholdAttributes) InternalTokens

func (RuleDestinationMetricsEventThresholdAttributes) InternalWithRef

func (RuleDestinationMetricsEventThresholdAttributes) Minutes

type RuleDestinationMetricsEventThresholdState

type RuleDestinationMetricsEventThresholdState struct {
	Minutes float64 `json:"minutes"`
}

type RuleDestinationMetricsState

type RuleDestinationMetricsState struct {
	Status         string                                      `json:"status"`
	EventThreshold []RuleDestinationMetricsEventThresholdState `json:"event_threshold"`
}

type RuleDestinationReplicationTime

type RuleDestinationReplicationTime struct {
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
	// RuleDestinationReplicationTimeTime: required
	Time *RuleDestinationReplicationTimeTime `hcl:"time,block" validate:"required"`
}

type RuleDestinationReplicationTimeAttributes

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

func (RuleDestinationReplicationTimeAttributes) InternalRef

func (RuleDestinationReplicationTimeAttributes) InternalTokens

func (RuleDestinationReplicationTimeAttributes) InternalWithRef

func (RuleDestinationReplicationTimeAttributes) Status

func (RuleDestinationReplicationTimeAttributes) Time

type RuleDestinationReplicationTimeState

type RuleDestinationReplicationTimeState struct {
	Status string                                    `json:"status"`
	Time   []RuleDestinationReplicationTimeTimeState `json:"time"`
}

type RuleDestinationReplicationTimeTime

type RuleDestinationReplicationTimeTime struct {
	// Minutes: number, required
	Minutes terra.NumberValue `hcl:"minutes,attr" validate:"required"`
}

type RuleDestinationReplicationTimeTimeAttributes

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

func (RuleDestinationReplicationTimeTimeAttributes) InternalRef

func (RuleDestinationReplicationTimeTimeAttributes) InternalTokens

func (RuleDestinationReplicationTimeTimeAttributes) InternalWithRef

func (RuleDestinationReplicationTimeTimeAttributes) Minutes

type RuleDestinationReplicationTimeTimeState

type RuleDestinationReplicationTimeTimeState struct {
	Minutes float64 `json:"minutes"`
}

type RuleDestinationState

type RuleDestinationState struct {
	Account                  string                                         `json:"account"`
	Bucket                   string                                         `json:"bucket"`
	StorageClass             string                                         `json:"storage_class"`
	AccessControlTranslation []RuleDestinationAccessControlTranslationState `json:"access_control_translation"`
	EncryptionConfiguration  []RuleDestinationEncryptionConfigurationState  `json:"encryption_configuration"`
	Metrics                  []RuleDestinationMetricsState                  `json:"metrics"`
	ReplicationTime          []RuleDestinationReplicationTimeState          `json:"replication_time"`
}

type RuleExistingObjectReplication

type RuleExistingObjectReplication struct {
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
}

type RuleExistingObjectReplicationAttributes

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

func (RuleExistingObjectReplicationAttributes) InternalRef

func (RuleExistingObjectReplicationAttributes) InternalTokens

func (RuleExistingObjectReplicationAttributes) InternalWithRef

func (RuleExistingObjectReplicationAttributes) Status

type RuleExistingObjectReplicationState

type RuleExistingObjectReplicationState struct {
	Status string `json:"status"`
}

type RuleFilter

type RuleFilter struct {
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// RuleFilterAnd: optional
	And *RuleFilterAnd `hcl:"and,block"`
	// RuleFilterTag: optional
	Tag *RuleFilterTag `hcl:"tag,block"`
}

type RuleFilterAnd

type RuleFilterAnd struct {
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

type RuleFilterAndAttributes

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

func (RuleFilterAndAttributes) InternalRef

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

func (RuleFilterAndAttributes) InternalTokens

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

func (RuleFilterAndAttributes) InternalWithRef

func (RuleFilterAndAttributes) Prefix

func (RuleFilterAndAttributes) Tags

type RuleFilterAndState

type RuleFilterAndState struct {
	Prefix string            `json:"prefix"`
	Tags   map[string]string `json:"tags"`
}

type RuleFilterAttributes

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

func (RuleFilterAttributes) And

func (RuleFilterAttributes) InternalRef

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

func (RuleFilterAttributes) InternalTokens

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

func (RuleFilterAttributes) InternalWithRef

func (RuleFilterAttributes) Prefix

func (RuleFilterAttributes) Tag

type RuleFilterState

type RuleFilterState struct {
	Prefix string               `json:"prefix"`
	And    []RuleFilterAndState `json:"and"`
	Tag    []RuleFilterTagState `json:"tag"`
}

type RuleFilterTag

type RuleFilterTag struct {
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type RuleFilterTagAttributes

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

func (RuleFilterTagAttributes) InternalRef

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

func (RuleFilterTagAttributes) InternalTokens

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

func (RuleFilterTagAttributes) InternalWithRef

func (RuleFilterTagAttributes) Key

func (RuleFilterTagAttributes) Value

type RuleFilterTagState

type RuleFilterTagState struct {
	Key   string `json:"key"`
	Value string `json:"value"`
}

type RuleSourceSelectionCriteria

type RuleSourceSelectionCriteria struct {
	// RuleSourceSelectionCriteriaReplicaModifications: optional
	ReplicaModifications *RuleSourceSelectionCriteriaReplicaModifications `hcl:"replica_modifications,block"`
	// RuleSourceSelectionCriteriaSseKmsEncryptedObjects: optional
	SseKmsEncryptedObjects *RuleSourceSelectionCriteriaSseKmsEncryptedObjects `hcl:"sse_kms_encrypted_objects,block"`
}

type RuleSourceSelectionCriteriaAttributes

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

func (RuleSourceSelectionCriteriaAttributes) InternalRef

func (RuleSourceSelectionCriteriaAttributes) InternalTokens

func (RuleSourceSelectionCriteriaAttributes) InternalWithRef

func (RuleSourceSelectionCriteriaAttributes) ReplicaModifications

type RuleSourceSelectionCriteriaReplicaModifications

type RuleSourceSelectionCriteriaReplicaModifications struct {
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
}

type RuleSourceSelectionCriteriaReplicaModificationsAttributes

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

func (RuleSourceSelectionCriteriaReplicaModificationsAttributes) InternalRef

func (RuleSourceSelectionCriteriaReplicaModificationsAttributes) InternalTokens

func (RuleSourceSelectionCriteriaReplicaModificationsAttributes) InternalWithRef

func (RuleSourceSelectionCriteriaReplicaModificationsAttributes) Status

type RuleSourceSelectionCriteriaReplicaModificationsState

type RuleSourceSelectionCriteriaReplicaModificationsState struct {
	Status string `json:"status"`
}

type RuleSourceSelectionCriteriaSseKmsEncryptedObjects

type RuleSourceSelectionCriteriaSseKmsEncryptedObjects struct {
	// Status: string, required
	Status terra.StringValue `hcl:"status,attr" validate:"required"`
}

type RuleSourceSelectionCriteriaSseKmsEncryptedObjectsAttributes

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

func (RuleSourceSelectionCriteriaSseKmsEncryptedObjectsAttributes) InternalRef

func (RuleSourceSelectionCriteriaSseKmsEncryptedObjectsAttributes) InternalTokens

func (RuleSourceSelectionCriteriaSseKmsEncryptedObjectsAttributes) InternalWithRef

func (RuleSourceSelectionCriteriaSseKmsEncryptedObjectsAttributes) Status

type RuleSourceSelectionCriteriaSseKmsEncryptedObjectsState

type RuleSourceSelectionCriteriaSseKmsEncryptedObjectsState struct {
	Status string `json:"status"`
}

type RuleSourceSelectionCriteriaState

type RuleSourceSelectionCriteriaState struct {
	ReplicaModifications   []RuleSourceSelectionCriteriaReplicaModificationsState   `json:"replica_modifications"`
	SseKmsEncryptedObjects []RuleSourceSelectionCriteriaSseKmsEncryptedObjectsState `json:"sse_kms_encrypted_objects"`
}

type RuleState

type RuleState struct {
	Id                        string                               `json:"id"`
	Prefix                    string                               `json:"prefix"`
	Priority                  float64                              `json:"priority"`
	Status                    string                               `json:"status"`
	DeleteMarkerReplication   []RuleDeleteMarkerReplicationState   `json:"delete_marker_replication"`
	Destination               []RuleDestinationState               `json:"destination"`
	ExistingObjectReplication []RuleExistingObjectReplicationState `json:"existing_object_replication"`
	Filter                    []RuleFilterState                    `json:"filter"`
	SourceSelectionCriteria   []RuleSourceSelectionCriteriaState   `json:"source_selection_criteria"`
}

Jump to

Keyboard shortcuts

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