pulumi_wasm_providers_aws_mini::s3::object_copy

Struct ObjectCopyArgsBuilder

source
pub struct ObjectCopyArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> ObjectCopyArgsBuilder<S>

source

pub fn build_struct(self) -> ObjectCopyArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn acl( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetAcl<S>>
where S::Acl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_acl( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetAcl<S>>
where S::Acl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn bucket( self, value: impl Into<Output<String>>, ) -> ObjectCopyArgsBuilder<SetBucket<S>>
where S::Bucket: IsUnset,

Required.

Name of the bucket to put the file in.

source

pub fn bucket_key_enabled( self, value: impl Into<Output<Option<bool>>>, ) -> ObjectCopyArgsBuilder<SetBucketKeyEnabled<S>>
where S::BucketKeyEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

source

pub fn maybe_bucket_key_enabled( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ObjectCopyArgsBuilder<SetBucketKeyEnabled<S>>
where S::BucketKeyEnabled: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

source

pub fn cache_control( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetCacheControl<S>>
where S::CacheControl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_cache_control( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetCacheControl<S>>
where S::CacheControl: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn checksum_algorithm( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetChecksumAlgorithm<S>>
where S::ChecksumAlgorithm: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_checksum_algorithm( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetChecksumAlgorithm<S>>
where S::ChecksumAlgorithm: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn content_disposition( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetContentDisposition<S>>
where S::ContentDisposition: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_content_disposition( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetContentDisposition<S>>
where S::ContentDisposition: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn content_encoding( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetContentEncoding<S>>
where S::ContentEncoding: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_content_encoding( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetContentEncoding<S>>
where S::ContentEncoding: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn content_language( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetContentLanguage<S>>
where S::ContentLanguage: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_content_language( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetContentLanguage<S>>
where S::ContentLanguage: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn content_type( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetContentType<S>>
where S::ContentType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_content_type( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetContentType<S>>
where S::ContentType: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn copy_if_match( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetCopyIfMatch<S>>
where S::CopyIfMatch: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_copy_if_match( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetCopyIfMatch<S>>
where S::CopyIfMatch: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn copy_if_modified_since( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetCopyIfModifiedSince<S>>
where S::CopyIfModifiedSince: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_copy_if_modified_since( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetCopyIfModifiedSince<S>>
where S::CopyIfModifiedSince: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn copy_if_none_match( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetCopyIfNoneMatch<S>>
where S::CopyIfNoneMatch: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_copy_if_none_match( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetCopyIfNoneMatch<S>>
where S::CopyIfNoneMatch: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn copy_if_unmodified_since( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetCopyIfUnmodifiedSince<S>>
where S::CopyIfUnmodifiedSince: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_copy_if_unmodified_since( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetCopyIfUnmodifiedSince<S>>
where S::CopyIfUnmodifiedSince: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn customer_algorithm( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetCustomerAlgorithm<S>>
where S::CustomerAlgorithm: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_customer_algorithm( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetCustomerAlgorithm<S>>
where S::CustomerAlgorithm: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn customer_key( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetCustomerKey<S>>
where S::CustomerKey: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_customer_key( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetCustomerKey<S>>
where S::CustomerKey: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn customer_key_md5( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetCustomerKeyMd5<S>>
where S::CustomerKeyMd5: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn maybe_customer_key_md5( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetCustomerKeyMd5<S>>
where S::CustomerKeyMd5: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn expected_bucket_owner( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetExpectedBucketOwner<S>>
where S::ExpectedBucketOwner: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_expected_bucket_owner( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetExpectedBucketOwner<S>>
where S::ExpectedBucketOwner: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn expected_source_bucket_owner( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetExpectedSourceBucketOwner<S>>
where S::ExpectedSourceBucketOwner: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_expected_source_bucket_owner( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetExpectedSourceBucketOwner<S>>
where S::ExpectedSourceBucketOwner: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn expires( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetExpires<S>>
where S::Expires: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_expires( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetExpires<S>>
where S::Expires: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn force_destroy( self, value: impl Into<Output<Option<bool>>>, ) -> ObjectCopyArgsBuilder<SetForceDestroy<S>>
where S::ForceDestroy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn maybe_force_destroy( self, value: Option<impl Into<Output<Option<bool>>>>, ) -> ObjectCopyArgsBuilder<SetForceDestroy<S>>
where S::ForceDestroy: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<bool>> as Default>::default().

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.

source

pub fn grants( self, value: impl Into<Output<Option<Vec<ObjectCopyGrant>>>>, ) -> ObjectCopyArgsBuilder<SetGrants<S>>
where S::Grants: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::ObjectCopyGrant>>,
> as Default>::default()

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

source

pub fn maybe_grants( self, value: Option<impl Into<Output<Option<Vec<ObjectCopyGrant>>>>>, ) -> ObjectCopyArgsBuilder<SetGrants<S>>
where S::Grants: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::s3::ObjectCopyGrant>>,
> as Default>::default()

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

source

pub fn key( self, value: impl Into<Output<String>>, ) -> ObjectCopyArgsBuilder<SetKey<S>>
where S::Key: IsUnset,

Required.

Name of the object once it is in the bucket.

source

pub fn kms_encryption_context( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetKmsEncryptionContext<S>>
where S::KmsEncryptionContext: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_kms_encryption_context( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetKmsEncryptionContext<S>>
where S::KmsEncryptionContext: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn kms_key_id( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetKmsKeyId<S>>
where S::KmsKeyId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_kms_key_id( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetKmsKeyId<S>>
where S::KmsKeyId: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn metadata( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> ObjectCopyArgsBuilder<SetMetadata<S>>
where S::Metadata: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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

source

pub fn maybe_metadata( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> ObjectCopyArgsBuilder<SetMetadata<S>>
where S::Metadata: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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

source

pub fn metadata_directive( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetMetadataDirective<S>>
where S::MetadataDirective: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_metadata_directive( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetMetadataDirective<S>>
where S::MetadataDirective: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn object_lock_mode( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetObjectLockMode<S>>
where S::ObjectLockMode: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_object_lock_mode( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetObjectLockMode<S>>
where S::ObjectLockMode: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn object_lock_retain_until_date( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetObjectLockRetainUntilDate<S>>
where S::ObjectLockRetainUntilDate: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_object_lock_retain_until_date( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetObjectLockRetainUntilDate<S>>
where S::ObjectLockRetainUntilDate: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn request_payer( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetRequestPayer<S>>
where S::RequestPayer: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_request_payer( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetRequestPayer<S>>
where S::RequestPayer: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn server_side_encryption( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetServerSideEncryption<S>>
where S::ServerSideEncryption: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_server_side_encryption( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetServerSideEncryption<S>>
where S::ServerSideEncryption: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn source( self, value: impl Into<Output<String>>, ) -> ObjectCopyArgsBuilder<SetSource<S>>
where S::Source: IsUnset,

Required.

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

pub fn source_customer_algorithm( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetSourceCustomerAlgorithm<S>>
where S::SourceCustomerAlgorithm: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_source_customer_algorithm( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetSourceCustomerAlgorithm<S>>
where S::SourceCustomerAlgorithm: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn source_customer_key( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetSourceCustomerKey<S>>
where S::SourceCustomerKey: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn maybe_source_customer_key( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetSourceCustomerKey<S>>
where S::SourceCustomerKey: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn source_customer_key_md5( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetSourceCustomerKeyMd5<S>>
where S::SourceCustomerKeyMd5: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn maybe_source_customer_key_md5( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetSourceCustomerKeyMd5<S>>
where S::SourceCustomerKeyMd5: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn storage_class( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetStorageClass<S>>
where S::StorageClass: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_storage_class( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetStorageClass<S>>
where S::StorageClass: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn tagging_directive( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetTaggingDirective<S>>
where S::TaggingDirective: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_tagging_directive( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetTaggingDirective<S>>
where S::TaggingDirective: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn tags( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> ObjectCopyArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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.

source

pub fn maybe_tags( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> ObjectCopyArgsBuilder<SetTags<S>>
where S::Tags: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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.

source

pub fn website_redirect( self, value: impl Into<Output<Option<String>>>, ) -> ObjectCopyArgsBuilder<SetWebsiteRedirect<S>>
where S::WebsiteRedirect: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

Specifies a target URL for website redirect.

source

pub fn maybe_website_redirect( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ObjectCopyArgsBuilder<SetWebsiteRedirect<S>>
where S::WebsiteRedirect: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.