aws_s3_object_copy

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 {
	// Acl: string, optional
	Acl terra.StringValue `hcl:"acl,attr"`
	// Bucket: string, required
	Bucket terra.StringValue `hcl:"bucket,attr" validate:"required"`
	// BucketKeyEnabled: bool, optional
	BucketKeyEnabled terra.BoolValue `hcl:"bucket_key_enabled,attr"`
	// CacheControl: string, optional
	CacheControl terra.StringValue `hcl:"cache_control,attr"`
	// ContentDisposition: string, optional
	ContentDisposition terra.StringValue `hcl:"content_disposition,attr"`
	// ContentEncoding: string, optional
	ContentEncoding terra.StringValue `hcl:"content_encoding,attr"`
	// ContentLanguage: string, optional
	ContentLanguage terra.StringValue `hcl:"content_language,attr"`
	// ContentType: string, optional
	ContentType terra.StringValue `hcl:"content_type,attr"`
	// CopyIfMatch: string, optional
	CopyIfMatch terra.StringValue `hcl:"copy_if_match,attr"`
	// CopyIfModifiedSince: string, optional
	CopyIfModifiedSince terra.StringValue `hcl:"copy_if_modified_since,attr"`
	// CopyIfNoneMatch: string, optional
	CopyIfNoneMatch terra.StringValue `hcl:"copy_if_none_match,attr"`
	// CopyIfUnmodifiedSince: string, optional
	CopyIfUnmodifiedSince terra.StringValue `hcl:"copy_if_unmodified_since,attr"`
	// CustomerAlgorithm: string, optional
	CustomerAlgorithm terra.StringValue `hcl:"customer_algorithm,attr"`
	// CustomerKey: string, optional
	CustomerKey terra.StringValue `hcl:"customer_key,attr"`
	// CustomerKeyMd5: string, optional
	CustomerKeyMd5 terra.StringValue `hcl:"customer_key_md5,attr"`
	// ExpectedBucketOwner: string, optional
	ExpectedBucketOwner terra.StringValue `hcl:"expected_bucket_owner,attr"`
	// ExpectedSourceBucketOwner: string, optional
	ExpectedSourceBucketOwner terra.StringValue `hcl:"expected_source_bucket_owner,attr"`
	// Expires: string, optional
	Expires terra.StringValue `hcl:"expires,attr"`
	// ForceDestroy: bool, optional
	ForceDestroy terra.BoolValue `hcl:"force_destroy,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Key: string, required
	Key terra.StringValue `hcl:"key,attr" validate:"required"`
	// KmsEncryptionContext: string, optional
	KmsEncryptionContext terra.StringValue `hcl:"kms_encryption_context,attr"`
	// KmsKeyId: string, optional
	KmsKeyId terra.StringValue `hcl:"kms_key_id,attr"`
	// Metadata: map of string, optional
	Metadata terra.MapValue[terra.StringValue] `hcl:"metadata,attr"`
	// MetadataDirective: string, optional
	MetadataDirective terra.StringValue `hcl:"metadata_directive,attr"`
	// ObjectLockLegalHoldStatus: string, optional
	ObjectLockLegalHoldStatus terra.StringValue `hcl:"object_lock_legal_hold_status,attr"`
	// ObjectLockMode: string, optional
	ObjectLockMode terra.StringValue `hcl:"object_lock_mode,attr"`
	// ObjectLockRetainUntilDate: string, optional
	ObjectLockRetainUntilDate terra.StringValue `hcl:"object_lock_retain_until_date,attr"`
	// RequestPayer: string, optional
	RequestPayer terra.StringValue `hcl:"request_payer,attr"`
	// ServerSideEncryption: string, optional
	ServerSideEncryption terra.StringValue `hcl:"server_side_encryption,attr"`
	// Source: string, required
	Source terra.StringValue `hcl:"source,attr" validate:"required"`
	// SourceCustomerAlgorithm: string, optional
	SourceCustomerAlgorithm terra.StringValue `hcl:"source_customer_algorithm,attr"`
	// SourceCustomerKey: string, optional
	SourceCustomerKey terra.StringValue `hcl:"source_customer_key,attr"`
	// SourceCustomerKeyMd5: string, optional
	SourceCustomerKeyMd5 terra.StringValue `hcl:"source_customer_key_md5,attr"`
	// StorageClass: string, optional
	StorageClass terra.StringValue `hcl:"storage_class,attr"`
	// TaggingDirective: string, optional
	TaggingDirective terra.StringValue `hcl:"tagging_directive,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"`
	// WebsiteRedirect: string, optional
	WebsiteRedirect terra.StringValue `hcl:"website_redirect,attr"`
	// Grant: min=0
	Grant []Grant `hcl:"grant,block" validate:"min=0"`
}

Args contains the configurations for aws_s3_object_copy.

type Grant

type Grant struct {
	// Email: string, optional
	Email terra.StringValue `hcl:"email,attr"`
	// 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) Email

func (g GrantAttributes) Email() terra.StringValue

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 {
	Email       string   `json:"email"`
	Id          string   `json:"id"`
	Permissions []string `json:"permissions"`
	Type        string   `json:"type"`
	Uri         string   `json:"uri"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asoc *Resource) Attributes() awsS3ObjectCopyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asoc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asoc *Resource) State() (*awsS3ObjectCopyState, bool)

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

func (*Resource) StateMust

func (asoc *Resource) StateMust() *awsS3ObjectCopyState

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

func (*Resource) Type

func (asoc *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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