pulumi_wasm_providers_aws_mini::s3::object_copy

Struct ObjectCopyResult

source
pub struct ObjectCopyResult {
Show 51 fields pub acl: Output<String>, pub arn: Output<String>, pub bucket: Output<String>, pub bucket_key_enabled: Output<bool>, pub cache_control: Output<String>, pub checksum_algorithm: Output<Option<String>>, pub checksum_crc32: Output<String>, pub checksum_crc32c: Output<String>, pub checksum_sha1: Output<String>, pub checksum_sha256: Output<String>, pub content_disposition: Output<String>, pub content_encoding: Output<String>, pub content_language: Output<String>, pub content_type: Output<String>, pub copy_if_match: Output<Option<String>>, pub copy_if_modified_since: Output<Option<String>>, pub copy_if_none_match: Output<Option<String>>, pub copy_if_unmodified_since: Output<Option<String>>, pub customer_algorithm: Output<String>, pub customer_key: Output<Option<String>>, pub customer_key_md5: Output<String>, pub etag: Output<String>, pub expected_bucket_owner: Output<Option<String>>, pub expected_source_bucket_owner: Output<Option<String>>, pub expiration: Output<String>, pub expires: Output<Option<String>>, pub force_destroy: Output<Option<bool>>, pub grants: Output<Option<Vec<ObjectCopyGrant>>>, pub key: Output<String>, pub kms_encryption_context: Output<String>, pub kms_key_id: Output<String>, pub last_modified: Output<String>, pub metadata: Output<HashMap<String, String>>, pub metadata_directive: Output<Option<String>>, pub object_lock_legal_hold_status: Output<String>, pub object_lock_mode: Output<String>, pub object_lock_retain_until_date: Output<String>, pub request_charged: Output<bool>, pub request_payer: Output<Option<String>>, pub server_side_encryption: Output<String>, pub source: Output<String>, pub source_customer_algorithm: Output<Option<String>>, pub source_customer_key: Output<Option<String>>, pub source_customer_key_md5: Output<Option<String>>, pub source_version_id: Output<String>, pub storage_class: Output<String>, pub tagging_directive: Output<Option<String>>, pub tags: Output<Option<HashMap<String, String>>>, pub tags_all: Output<HashMap<String, String>>, pub version_id: Output<String>, pub website_redirect: Output<String>,
}

Fields§

§acl: Output<String>

Canned ACL to apply. Valid values are private, public-read, public-read-write, authenticated-read, aws-exec-read, bucket-owner-read, and bucket-owner-full-control. Conflicts with grant.

§arn: Output<String>

ARN of the object.

§bucket: Output<String>

Name of the bucket to put the file in.

§bucket_key_enabled: Output<bool>§cache_control: Output<String>

Specifies caching behavior along the request/reply chain Read w3c cache_control for further details.

§checksum_algorithm: Output<Option<String>>

Indicates the algorithm used to create the checksum for the object. If a value is specified and the object is encrypted with KMS, you must have permission to use the kms:Decrypt action. Valid values: CRC32, CRC32C, SHA1, SHA256.

§checksum_crc32: Output<String>

The base64-encoded, 32-bit CRC32 checksum of the object.

§checksum_crc32c: Output<String>

The base64-encoded, 32-bit CRC32C checksum of the object.

§checksum_sha1: Output<String>

The base64-encoded, 160-bit SHA-1 digest of the object.

§checksum_sha256: Output<String>

The base64-encoded, 256-bit SHA-256 digest of the object.

§content_disposition: Output<String>

Specifies presentational information for the object. Read w3c content_disposition for further information.

§content_encoding: Output<String>

Specifies what content encodings have been applied to the object and thus what decoding mechanisms must be applied to obtain the media-type referenced by the Content-Type header field. Read w3c content encoding for further information.

§content_language: Output<String>

Language the content is in e.g., en-US or en-GB.

§content_type: Output<String>

Standard MIME type describing the format of the object data, e.g., application/octet-stream. All Valid MIME Types are valid for this input.

§copy_if_match: Output<Option<String>>

Copies the object if its entity tag (ETag) matches the specified tag.

§copy_if_modified_since: Output<Option<String>>

Copies the object if it has been modified since the specified time, in RFC3339 format.

§copy_if_none_match: Output<Option<String>>

Copies the object if its entity tag (ETag) is different than the specified ETag.

§copy_if_unmodified_since: Output<Option<String>>

Copies the object if it hasn’t been modified since the specified time, in RFC3339 format.

§customer_algorithm: Output<String>

Specifies the algorithm to use to when encrypting the object (for example, AES256).

§customer_key: Output<Option<String>>

Specifies the customer-provided encryption key for Amazon S3 to use in encrypting data. This value is used to store the object and then it is discarded; Amazon S3 does not store the encryption key. The key must be appropriate for use with the algorithm specified in the x-amz-server-side-encryption-customer-algorithm header.

§customer_key_md5: Output<String>

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

§etag: Output<String>

ETag generated for the object (an MD5 sum of the object content). For plaintext objects or objects encrypted with an AWS-managed key, the hash is an MD5 digest of the object data. For objects encrypted with a KMS key or objects created by either the Multipart Upload or Part Copy operation, the hash is not an MD5 digest, regardless of the method of encryption. More information on possible values can be found on Common Response Headers.

§expected_bucket_owner: Output<Option<String>>

Account id of the expected destination bucket owner. If the destination bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

§expected_source_bucket_owner: Output<Option<String>>

Account id of the expected source bucket owner. If the source bucket is owned by a different account, the request will fail with an HTTP 403 (Access Denied) error.

§expiration: Output<String>

If the object expiration is configured, this attribute will be set.

§expires: Output<Option<String>>

Date and time at which the object is no longer cacheable, in RFC3339 format.

§force_destroy: Output<Option<bool>>

Allow the object to be deleted by removing any legal hold on any object version. Default is false. This value should be set to true only if the bucket has S3 object lock enabled.

§grants: Output<Option<Vec<ObjectCopyGrant>>>

Configuration block for header grants. Documented below. Conflicts with acl.

§key: Output<String>

Name of the object once it is in the bucket.

§kms_encryption_context: Output<String>

Specifies the AWS KMS Encryption Context to use for object encryption. The value is a base64-encoded UTF-8 string holding JSON with the encryption context key-value pairs.

§kms_key_id: Output<String>

Specifies the AWS KMS Key ARN to use for object encryption. This value is a fully qualified ARN of the KMS Key. If using aws.kms.Key, use the exported arn attribute: kms_key_id = aws_kms_key.foo.arn

§last_modified: Output<String>

Returns the date that the object was last modified, in RFC3339 format.

§metadata: Output<HashMap<String, String>>

Map of keys/values to provision metadata (will be automatically prefixed by x-amz-meta-, note that only lowercase label are currently supported by the AWS Go API).

§metadata_directive: Output<Option<String>>

Specifies whether the metadata is copied from the source object or replaced with metadata provided in the request. Valid values are COPY and REPLACE.

§object_lock_legal_hold_status: Output<String>

The legal hold status that you want to apply to the specified object. Valid values are ON and OFF.

§object_lock_mode: Output<String>

Object lock retention mode that you want to apply to this object. Valid values are GOVERNANCE and COMPLIANCE.

§object_lock_retain_until_date: Output<String>

Date and time, in RFC3339 format, when this object’s object lock will expire.

§request_charged: Output<bool>

If present, indicates that the requester was successfully charged for the request.

§request_payer: Output<Option<String>>

Confirms that the requester knows that they will be charged for the request. Bucket owners need not specify this parameter in their requests. For information about downloading objects from requester pays buckets, see Downloading Objects in Requestor Pays Buckets (https://docs.aws.amazon.com/AmazonS3/latest/dev/ObjectsinRequesterPaysBuckets.html) in the Amazon S3 Developer Guide. If included, the only valid value is requester.

§server_side_encryption: Output<String>

Specifies server-side encryption of the object in S3. Valid values are AES256 and aws:kms.

§source: Output<String>

Specifies the source object for the copy operation. You specify the value in one of two formats. For objects not accessed through an access point, specify the name of the source bucket and the key of the source object, separated by a slash (/). For example, testbucket/test1.json. For objects accessed through access points, specify the ARN of the object as accessed through the access point, in the format arn:aws:s3:<Region>:<account-id>:accesspoint/<access-point-name>/object/<key>. For example, arn:aws:s3:us-west-2:9999912999:accesspoint/my-access-point/object/testbucket/test1.json.

The following arguments are optional:

§source_customer_algorithm: Output<Option<String>>

Specifies the algorithm to use when decrypting the source object (for example, AES256).

§source_customer_key: Output<Option<String>>

Specifies the customer-provided encryption key for Amazon S3 to use to decrypt the source object. The encryption key provided in this header must be one that was used when the source object was created.

§source_customer_key_md5: Output<Option<String>>

Specifies the 128-bit MD5 digest of the encryption key according to RFC 1321. Amazon S3 uses this header for a message integrity check to ensure that the encryption key was transmitted without error.

§source_version_id: Output<String>

Version of the copied object in the source bucket.

§storage_class: Output<String>

Specifies the desired storage class for the object. Defaults to STANDARD.

§tagging_directive: Output<Option<String>>

Specifies whether the object tag-set are copied from the source object or replaced with tag-set provided in the request. Valid values are COPY and REPLACE.

§tags: Output<Option<HashMap<String, String>>>

Map of tags to assign to the object. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

§tags_all: Output<HashMap<String, String>>

Map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

§version_id: Output<String>

Version ID of the newly created copy.

§website_redirect: Output<String>

Specifies a target URL for website redirect.

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.