s3bucket

package
v0.0.0-...-917d9f1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlTranslation

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

type AccessControlTranslationAttributes

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

func (AccessControlTranslationAttributes) InternalRef

func (AccessControlTranslationAttributes) InternalTokens

func (act AccessControlTranslationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AccessControlTranslationAttributes) InternalWithRef

func (AccessControlTranslationAttributes) Owner

type AccessControlTranslationState

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

type ApplyServerSideEncryptionByDefault

type ApplyServerSideEncryptionByDefault struct {
	// KmsMasterKeyId: string, optional
	KmsMasterKeyId terra.StringValue `hcl:"kms_master_key_id,attr"`
	// SseAlgorithm: string, required
	SseAlgorithm terra.StringValue `hcl:"sse_algorithm,attr" validate:"required"`
}

type ApplyServerSideEncryptionByDefaultAttributes

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

func (ApplyServerSideEncryptionByDefaultAttributes) InternalRef

func (ApplyServerSideEncryptionByDefaultAttributes) InternalTokens

func (ApplyServerSideEncryptionByDefaultAttributes) InternalWithRef

func (ApplyServerSideEncryptionByDefaultAttributes) KmsMasterKeyId

func (ApplyServerSideEncryptionByDefaultAttributes) SseAlgorithm

type ApplyServerSideEncryptionByDefaultState

type ApplyServerSideEncryptionByDefaultState struct {
	KmsMasterKeyId string `json:"kms_master_key_id"`
	SseAlgorithm   string `json:"sse_algorithm"`
}

type CorsRule

type CorsRule struct {
	// AllowedHeaders: list of string, optional
	AllowedHeaders terra.ListValue[terra.StringValue] `hcl:"allowed_headers,attr"`
	// AllowedMethods: list of string, required
	AllowedMethods terra.ListValue[terra.StringValue] `hcl:"allowed_methods,attr" validate:"required"`
	// AllowedOrigins: list of string, required
	AllowedOrigins terra.ListValue[terra.StringValue] `hcl:"allowed_origins,attr" validate:"required"`
	// ExposeHeaders: list of string, optional
	ExposeHeaders terra.ListValue[terra.StringValue] `hcl:"expose_headers,attr"`
	// MaxAgeSeconds: number, optional
	MaxAgeSeconds terra.NumberValue `hcl:"max_age_seconds,attr"`
}

type CorsRuleAttributes

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

func (CorsRuleAttributes) AllowedHeaders

func (cr CorsRuleAttributes) AllowedHeaders() terra.ListValue[terra.StringValue]

func (CorsRuleAttributes) AllowedMethods

func (cr CorsRuleAttributes) AllowedMethods() terra.ListValue[terra.StringValue]

func (CorsRuleAttributes) AllowedOrigins

func (cr CorsRuleAttributes) AllowedOrigins() terra.ListValue[terra.StringValue]

func (CorsRuleAttributes) ExposeHeaders

func (cr CorsRuleAttributes) ExposeHeaders() terra.ListValue[terra.StringValue]

func (CorsRuleAttributes) InternalRef

func (cr CorsRuleAttributes) InternalRef() (terra.Reference, error)

func (CorsRuleAttributes) InternalTokens

func (cr CorsRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CorsRuleAttributes) InternalWithRef

func (cr CorsRuleAttributes) InternalWithRef(ref terra.Reference) CorsRuleAttributes

func (CorsRuleAttributes) MaxAgeSeconds

func (cr CorsRuleAttributes) MaxAgeSeconds() terra.NumberValue

type CorsRuleState

type CorsRuleState struct {
	AllowedHeaders []string `json:"allowed_headers"`
	AllowedMethods []string `json:"allowed_methods"`
	AllowedOrigins []string `json:"allowed_origins"`
	ExposeHeaders  []string `json:"expose_headers"`
	MaxAgeSeconds  float64  `json:"max_age_seconds"`
}

type DefaultRetention

type DefaultRetention struct {
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// Years: number, optional
	Years terra.NumberValue `hcl:"years,attr"`
}

type DefaultRetentionAttributes

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

func (DefaultRetentionAttributes) Days

func (DefaultRetentionAttributes) InternalRef

func (dr DefaultRetentionAttributes) InternalRef() (terra.Reference, error)

func (DefaultRetentionAttributes) InternalTokens

func (dr DefaultRetentionAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DefaultRetentionAttributes) InternalWithRef

func (DefaultRetentionAttributes) Mode

func (DefaultRetentionAttributes) Years

type DefaultRetentionState

type DefaultRetentionState struct {
	Days  float64 `json:"days"`
	Mode  string  `json:"mode"`
	Years float64 `json:"years"`
}

type Destination

type Destination struct {
	// AccountId: string, optional
	AccountId terra.StringValue `hcl:"account_id,attr"`
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// ReplicaKmsKeyId: string, optional
	ReplicaKmsKeyId terra.StringValue `hcl:"replica_kms_key_id,attr"`
	// StorageClass: string, optional
	StorageClass terra.StringValue `hcl:"storage_class,attr"`
	// AccessControlTranslation: optional
	AccessControlTranslation *AccessControlTranslation `hcl:"access_control_translation,block"`
	// Metrics: optional
	Metrics *Metrics `hcl:"metrics,block"`
	// ReplicationTime: optional
	ReplicationTime *ReplicationTime `hcl:"replication_time,block"`
}

type DestinationAttributes

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

func (DestinationAttributes) AccessControlTranslation

func (DestinationAttributes) AccountId

func (d DestinationAttributes) AccountId() terra.StringValue

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

func (DestinationAttributes) Metrics

func (DestinationAttributes) ReplicaKmsKeyId

func (d DestinationAttributes) ReplicaKmsKeyId() terra.StringValue

func (DestinationAttributes) ReplicationTime

func (DestinationAttributes) StorageClass

func (d DestinationAttributes) StorageClass() terra.StringValue

type DestinationState

type DestinationState struct {
	AccountId                string                          `json:"account_id"`
	Bucket                   string                          `json:"bucket"`
	ReplicaKmsKeyId          string                          `json:"replica_kms_key_id"`
	StorageClass             string                          `json:"storage_class"`
	AccessControlTranslation []AccessControlTranslationState `json:"access_control_translation"`
	Metrics                  []MetricsState                  `json:"metrics"`
	ReplicationTime          []ReplicationTimeState          `json:"replication_time"`
}

type Expiration

type Expiration struct {
	// Date: string, optional
	Date terra.StringValue `hcl:"date,attr"`
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// ExpiredObjectDeleteMarker: bool, optional
	ExpiredObjectDeleteMarker terra.BoolValue `hcl:"expired_object_delete_marker,attr"`
}

type ExpirationAttributes

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

func (ExpirationAttributes) Date

func (ExpirationAttributes) Days

func (ExpirationAttributes) ExpiredObjectDeleteMarker

func (e ExpirationAttributes) ExpiredObjectDeleteMarker() terra.BoolValue

func (ExpirationAttributes) InternalRef

func (e ExpirationAttributes) InternalRef() (terra.Reference, error)

func (ExpirationAttributes) InternalTokens

func (e ExpirationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ExpirationAttributes) InternalWithRef

type ExpirationState

type ExpirationState struct {
	Date                      string  `json:"date"`
	Days                      float64 `json:"days"`
	ExpiredObjectDeleteMarker bool    `json:"expired_object_delete_marker"`
}

type Filter

type Filter struct {
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,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

func (FilterAttributes) Tags

type FilterState

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

type Grant

type Grant struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Permissions: set of string, required
	Permissions terra.SetValue[terra.StringValue] `hcl:"permissions,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
	// Uri: string, optional
	Uri terra.StringValue `hcl:"uri,attr"`
}

type GrantAttributes

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

func (GrantAttributes) Id

func (GrantAttributes) InternalRef

func (g GrantAttributes) InternalRef() (terra.Reference, error)

func (GrantAttributes) InternalTokens

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

func (GrantAttributes) InternalWithRef

func (g GrantAttributes) InternalWithRef(ref terra.Reference) GrantAttributes

func (GrantAttributes) Permissions

func (g GrantAttributes) Permissions() terra.SetValue[terra.StringValue]

func (GrantAttributes) Type

func (GrantAttributes) Uri

type GrantState

type GrantState struct {
	Id          string   `json:"id"`
	Permissions []string `json:"permissions"`
	Type        string   `json:"type"`
	Uri         string   `json:"uri"`
}

type LifecycleRule

type LifecycleRule struct {
	// AbortIncompleteMultipartUploadDays: number, optional
	AbortIncompleteMultipartUploadDays terra.NumberValue `hcl:"abort_incomplete_multipart_upload_days,attr"`
	// Enabled: bool, required
	Enabled terra.BoolValue `hcl:"enabled,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Prefix: string, optional
	Prefix terra.StringValue `hcl:"prefix,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Expiration: optional
	Expiration *Expiration `hcl:"expiration,block"`
	// NoncurrentVersionExpiration: optional
	NoncurrentVersionExpiration *NoncurrentVersionExpiration `hcl:"noncurrent_version_expiration,block"`
	// NoncurrentVersionTransition: min=0
	NoncurrentVersionTransition []NoncurrentVersionTransition `hcl:"noncurrent_version_transition,block" validate:"min=0"`
	// Transition: min=0
	Transition []Transition `hcl:"transition,block" validate:"min=0"`
}

type LifecycleRuleAttributes

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

func (LifecycleRuleAttributes) AbortIncompleteMultipartUploadDays

func (lr LifecycleRuleAttributes) AbortIncompleteMultipartUploadDays() terra.NumberValue

func (LifecycleRuleAttributes) Enabled

func (LifecycleRuleAttributes) Expiration

func (LifecycleRuleAttributes) Id

func (LifecycleRuleAttributes) InternalRef

func (lr LifecycleRuleAttributes) InternalRef() (terra.Reference, error)

func (LifecycleRuleAttributes) InternalTokens

func (lr LifecycleRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LifecycleRuleAttributes) InternalWithRef

func (LifecycleRuleAttributes) NoncurrentVersionExpiration

func (LifecycleRuleAttributes) NoncurrentVersionTransition

func (LifecycleRuleAttributes) Prefix

func (LifecycleRuleAttributes) Tags

func (LifecycleRuleAttributes) Transition

type LifecycleRuleState

type LifecycleRuleState struct {
	AbortIncompleteMultipartUploadDays float64                            `json:"abort_incomplete_multipart_upload_days"`
	Enabled                            bool                               `json:"enabled"`
	Id                                 string                             `json:"id"`
	Prefix                             string                             `json:"prefix"`
	Tags                               map[string]string                  `json:"tags"`
	Expiration                         []ExpirationState                  `json:"expiration"`
	NoncurrentVersionExpiration        []NoncurrentVersionExpirationState `json:"noncurrent_version_expiration"`
	NoncurrentVersionTransition        []NoncurrentVersionTransitionState `json:"noncurrent_version_transition"`
	Transition                         []TransitionState                  `json:"transition"`
}

type Logging

type Logging struct {
	// TargetBucket: string, required
	TargetBucket terra.StringValue `hcl:"target_bucket,attr" validate:"required"`
	// TargetPrefix: string, optional
	TargetPrefix terra.StringValue `hcl:"target_prefix,attr"`
}

type LoggingAttributes

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

func (LoggingAttributes) InternalRef

func (l LoggingAttributes) InternalRef() (terra.Reference, error)

func (LoggingAttributes) InternalTokens

func (l LoggingAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LoggingAttributes) InternalWithRef

func (l LoggingAttributes) InternalWithRef(ref terra.Reference) LoggingAttributes

func (LoggingAttributes) TargetBucket

func (l LoggingAttributes) TargetBucket() terra.StringValue

func (LoggingAttributes) TargetPrefix

func (l LoggingAttributes) TargetPrefix() terra.StringValue

type LoggingState

type LoggingState struct {
	TargetBucket string `json:"target_bucket"`
	TargetPrefix string `json:"target_prefix"`
}

type Metrics

type Metrics struct {
	// Minutes: number, optional
	Minutes terra.NumberValue `hcl:"minutes,attr"`
	// Status: string, optional
	Status terra.StringValue `hcl:"status,attr"`
}

type MetricsAttributes

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

func (MetricsAttributes) InternalRef

func (m MetricsAttributes) InternalRef() (terra.Reference, error)

func (MetricsAttributes) InternalTokens

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

func (MetricsAttributes) InternalWithRef

func (m MetricsAttributes) InternalWithRef(ref terra.Reference) MetricsAttributes

func (MetricsAttributes) Minutes

func (m MetricsAttributes) Minutes() terra.NumberValue

func (MetricsAttributes) Status

func (m MetricsAttributes) Status() terra.StringValue

type MetricsState

type MetricsState struct {
	Minutes float64 `json:"minutes"`
	Status  string  `json:"status"`
}

type NoncurrentVersionExpiration

type NoncurrentVersionExpiration struct {
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
}

type NoncurrentVersionExpirationAttributes

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

func (NoncurrentVersionExpirationAttributes) Days

func (NoncurrentVersionExpirationAttributes) InternalRef

func (NoncurrentVersionExpirationAttributes) InternalTokens

func (NoncurrentVersionExpirationAttributes) InternalWithRef

type NoncurrentVersionExpirationState

type NoncurrentVersionExpirationState struct {
	Days float64 `json:"days"`
}

type NoncurrentVersionTransition

type NoncurrentVersionTransition struct {
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// StorageClass: string, required
	StorageClass terra.StringValue `hcl:"storage_class,attr" validate:"required"`
}

type NoncurrentVersionTransitionAttributes

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

func (NoncurrentVersionTransitionAttributes) Days

func (NoncurrentVersionTransitionAttributes) InternalRef

func (NoncurrentVersionTransitionAttributes) InternalTokens

func (NoncurrentVersionTransitionAttributes) InternalWithRef

func (NoncurrentVersionTransitionAttributes) StorageClass

type NoncurrentVersionTransitionState

type NoncurrentVersionTransitionState struct {
	Days         float64 `json:"days"`
	StorageClass string  `json:"storage_class"`
}

type ObjectLockConfiguration

type ObjectLockConfiguration struct {
	// ObjectLockEnabled: string, optional
	ObjectLockEnabled terra.StringValue `hcl:"object_lock_enabled,attr"`
	// ObjectLockConfigurationRule: optional
	Rule *ObjectLockConfigurationRule `hcl:"rule,block"`
}

type ObjectLockConfigurationAttributes

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

func (ObjectLockConfigurationAttributes) InternalRef

func (ObjectLockConfigurationAttributes) InternalTokens

func (olc ObjectLockConfigurationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ObjectLockConfigurationAttributes) InternalWithRef

func (ObjectLockConfigurationAttributes) ObjectLockEnabled

func (olc ObjectLockConfigurationAttributes) ObjectLockEnabled() terra.StringValue

func (ObjectLockConfigurationAttributes) Rule

type ObjectLockConfigurationRule

type ObjectLockConfigurationRule struct {
	// DefaultRetention: required
	DefaultRetention *DefaultRetention `hcl:"default_retention,block" validate:"required"`
}

type ObjectLockConfigurationRuleAttributes

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

func (ObjectLockConfigurationRuleAttributes) DefaultRetention

func (ObjectLockConfigurationRuleAttributes) InternalRef

func (ObjectLockConfigurationRuleAttributes) InternalTokens

func (ObjectLockConfigurationRuleAttributes) InternalWithRef

type ObjectLockConfigurationRuleState

type ObjectLockConfigurationRuleState struct {
	DefaultRetention []DefaultRetentionState `json:"default_retention"`
}

type ObjectLockConfigurationState

type ObjectLockConfigurationState struct {
	ObjectLockEnabled string                             `json:"object_lock_enabled"`
	Rule              []ObjectLockConfigurationRuleState `json:"rule"`
}

type ReplicationConfiguration

type ReplicationConfiguration struct {
	// Role: string, required
	Role terra.StringValue `hcl:"role,attr" validate:"required"`
	// Rules: min=1
	Rules []Rules `hcl:"rules,block" validate:"min=1"`
}

type ReplicationConfigurationAttributes

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

func (ReplicationConfigurationAttributes) InternalRef

func (ReplicationConfigurationAttributes) InternalTokens

func (ReplicationConfigurationAttributes) InternalWithRef

func (ReplicationConfigurationAttributes) Role

func (ReplicationConfigurationAttributes) Rules

type ReplicationConfigurationState

type ReplicationConfigurationState struct {
	Role  string       `json:"role"`
	Rules []RulesState `json:"rules"`
}

type ReplicationTime

type ReplicationTime struct {
	// Minutes: number, optional
	Minutes terra.NumberValue `hcl:"minutes,attr"`
	// Status: string, optional
	Status terra.StringValue `hcl:"status,attr"`
}

type ReplicationTimeAttributes

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

func (ReplicationTimeAttributes) InternalRef

func (rt ReplicationTimeAttributes) InternalRef() (terra.Reference, error)

func (ReplicationTimeAttributes) InternalTokens

func (rt ReplicationTimeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ReplicationTimeAttributes) InternalWithRef

func (ReplicationTimeAttributes) Minutes

func (ReplicationTimeAttributes) Status

type ReplicationTimeState

type ReplicationTimeState struct {
	Minutes float64 `json:"minutes"`
	Status  string  `json:"status"`
}

type Rules

type Rules struct {
	// DeleteMarkerReplicationStatus: string, optional
	DeleteMarkerReplicationStatus terra.StringValue `hcl:"delete_marker_replication_status,attr"`
	// 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"`
	// Destination: required
	Destination *Destination `hcl:"destination,block" validate:"required"`
	// Filter: optional
	Filter *Filter `hcl:"filter,block"`
	// SourceSelectionCriteria: optional
	SourceSelectionCriteria *SourceSelectionCriteria `hcl:"source_selection_criteria,block"`
}

type RulesAttributes

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

func (RulesAttributes) DeleteMarkerReplicationStatus

func (r RulesAttributes) DeleteMarkerReplicationStatus() terra.StringValue

func (RulesAttributes) Destination

func (RulesAttributes) Filter

func (RulesAttributes) Id

func (RulesAttributes) InternalRef

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

func (RulesAttributes) InternalTokens

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

func (RulesAttributes) InternalWithRef

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

func (RulesAttributes) Prefix

func (r RulesAttributes) Prefix() terra.StringValue

func (RulesAttributes) Priority

func (r RulesAttributes) Priority() terra.NumberValue

func (RulesAttributes) SourceSelectionCriteria

func (RulesAttributes) Status

func (r RulesAttributes) Status() terra.StringValue

type RulesState

type RulesState struct {
	DeleteMarkerReplicationStatus string                         `json:"delete_marker_replication_status"`
	Id                            string                         `json:"id"`
	Prefix                        string                         `json:"prefix"`
	Priority                      float64                        `json:"priority"`
	Status                        string                         `json:"status"`
	Destination                   []DestinationState             `json:"destination"`
	Filter                        []FilterState                  `json:"filter"`
	SourceSelectionCriteria       []SourceSelectionCriteriaState `json:"source_selection_criteria"`
}

type ServerSideEncryptionConfiguration

type ServerSideEncryptionConfiguration struct {
	// ServerSideEncryptionConfigurationRule: required
	Rule *ServerSideEncryptionConfigurationRule `hcl:"rule,block" validate:"required"`
}

type ServerSideEncryptionConfigurationAttributes

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

func (ServerSideEncryptionConfigurationAttributes) InternalRef

func (ServerSideEncryptionConfigurationAttributes) InternalTokens

func (ServerSideEncryptionConfigurationAttributes) InternalWithRef

func (ServerSideEncryptionConfigurationAttributes) Rule

type ServerSideEncryptionConfigurationRule

type ServerSideEncryptionConfigurationRule struct {
	// BucketKeyEnabled: bool, optional
	BucketKeyEnabled terra.BoolValue `hcl:"bucket_key_enabled,attr"`
	// ApplyServerSideEncryptionByDefault: required
	ApplyServerSideEncryptionByDefault *ApplyServerSideEncryptionByDefault `hcl:"apply_server_side_encryption_by_default,block" validate:"required"`
}

type ServerSideEncryptionConfigurationRuleAttributes

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

func (ServerSideEncryptionConfigurationRuleAttributes) ApplyServerSideEncryptionByDefault

func (ServerSideEncryptionConfigurationRuleAttributes) BucketKeyEnabled

func (ServerSideEncryptionConfigurationRuleAttributes) InternalRef

func (ServerSideEncryptionConfigurationRuleAttributes) InternalTokens

func (ServerSideEncryptionConfigurationRuleAttributes) InternalWithRef

type ServerSideEncryptionConfigurationRuleState

type ServerSideEncryptionConfigurationRuleState struct {
	BucketKeyEnabled                   bool                                      `json:"bucket_key_enabled"`
	ApplyServerSideEncryptionByDefault []ApplyServerSideEncryptionByDefaultState `json:"apply_server_side_encryption_by_default"`
}

type ServerSideEncryptionConfigurationState

type ServerSideEncryptionConfigurationState struct {
	Rule []ServerSideEncryptionConfigurationRuleState `json:"rule"`
}

type SourceSelectionCriteria

type SourceSelectionCriteria struct {
	// SseKmsEncryptedObjects: optional
	SseKmsEncryptedObjects *SseKmsEncryptedObjects `hcl:"sse_kms_encrypted_objects,block"`
}

type SourceSelectionCriteriaAttributes

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

func (SourceSelectionCriteriaAttributes) InternalRef

func (SourceSelectionCriteriaAttributes) InternalTokens

func (ssc SourceSelectionCriteriaAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SourceSelectionCriteriaAttributes) InternalWithRef

func (SourceSelectionCriteriaAttributes) SseKmsEncryptedObjects

type SourceSelectionCriteriaState

type SourceSelectionCriteriaState struct {
	SseKmsEncryptedObjects []SseKmsEncryptedObjectsState `json:"sse_kms_encrypted_objects"`
}

type SseKmsEncryptedObjects

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

type SseKmsEncryptedObjectsAttributes

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

func (SseKmsEncryptedObjectsAttributes) Enabled

func (SseKmsEncryptedObjectsAttributes) InternalRef

func (skeo SseKmsEncryptedObjectsAttributes) InternalRef() (terra.Reference, error)

func (SseKmsEncryptedObjectsAttributes) InternalTokens

func (skeo SseKmsEncryptedObjectsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (SseKmsEncryptedObjectsAttributes) InternalWithRef

type SseKmsEncryptedObjectsState

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

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,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) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

type Transition

type Transition struct {
	// Date: string, optional
	Date terra.StringValue `hcl:"date,attr"`
	// Days: number, optional
	Days terra.NumberValue `hcl:"days,attr"`
	// StorageClass: string, required
	StorageClass terra.StringValue `hcl:"storage_class,attr" validate:"required"`
}

type TransitionAttributes

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

func (TransitionAttributes) Date

func (TransitionAttributes) Days

func (TransitionAttributes) InternalRef

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

func (TransitionAttributes) InternalTokens

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

func (TransitionAttributes) InternalWithRef

func (TransitionAttributes) StorageClass

func (t TransitionAttributes) StorageClass() terra.StringValue

type TransitionState

type TransitionState struct {
	Date         string  `json:"date"`
	Days         float64 `json:"days"`
	StorageClass string  `json:"storage_class"`
}

type Versioning

type Versioning struct {
	// Enabled: bool, optional
	Enabled terra.BoolValue `hcl:"enabled,attr"`
	// MfaDelete: bool, optional
	MfaDelete terra.BoolValue `hcl:"mfa_delete,attr"`
}

type VersioningAttributes

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

func (VersioningAttributes) Enabled

func (v VersioningAttributes) Enabled() terra.BoolValue

func (VersioningAttributes) InternalRef

func (v VersioningAttributes) InternalRef() (terra.Reference, error)

func (VersioningAttributes) InternalTokens

func (v VersioningAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VersioningAttributes) InternalWithRef

func (VersioningAttributes) MfaDelete

func (v VersioningAttributes) MfaDelete() terra.BoolValue

type VersioningState

type VersioningState struct {
	Enabled   bool `json:"enabled"`
	MfaDelete bool `json:"mfa_delete"`
}

type Website

type Website struct {
	// ErrorDocument: string, optional
	ErrorDocument terra.StringValue `hcl:"error_document,attr"`
	// IndexDocument: string, optional
	IndexDocument terra.StringValue `hcl:"index_document,attr"`
	// RedirectAllRequestsTo: string, optional
	RedirectAllRequestsTo terra.StringValue `hcl:"redirect_all_requests_to,attr"`
	// RoutingRules: string, optional
	RoutingRules terra.StringValue `hcl:"routing_rules,attr"`
}

type WebsiteAttributes

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

func (WebsiteAttributes) ErrorDocument

func (w WebsiteAttributes) ErrorDocument() terra.StringValue

func (WebsiteAttributes) IndexDocument

func (w WebsiteAttributes) IndexDocument() terra.StringValue

func (WebsiteAttributes) InternalRef

func (w WebsiteAttributes) InternalRef() (terra.Reference, error)

func (WebsiteAttributes) InternalTokens

func (w WebsiteAttributes) InternalTokens() (hclwrite.Tokens, error)

func (WebsiteAttributes) InternalWithRef

func (w WebsiteAttributes) InternalWithRef(ref terra.Reference) WebsiteAttributes

func (WebsiteAttributes) RedirectAllRequestsTo

func (w WebsiteAttributes) RedirectAllRequestsTo() terra.StringValue

func (WebsiteAttributes) RoutingRules

func (w WebsiteAttributes) RoutingRules() terra.StringValue

type WebsiteState

type WebsiteState struct {
	ErrorDocument         string `json:"error_document"`
	IndexDocument         string `json:"index_document"`
	RedirectAllRequestsTo string `json:"redirect_all_requests_to"`
	RoutingRules          string `json:"routing_rules"`
}

Jump to

Keyboard shortcuts

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