Object.CopyCopyObject request options and result metadata.
`Copy preserves source metadata. `Replace metadata writes new user metadata on the destination object.
type options = {source_version_id : Version_id.t option;Source object version to copy.
*)source_preconditions : Preconditions.Copy_source.t;Preconditions applied to the source object.
*)metadata_directive : metadata_directive option;Whether to copy source metadata or replace it.
*)storage_class : Storage_class.t option;Storage class for the destination object.
*)checksum_algorithm : Checksum.Algorithm.t option;Checksum algorithm S3 should use for the destination object.
*)destination_encryption : Encryption.Destination.t option;Encryption for the destination object.
*)source_encryption : Encryption.Source.t option;SSE-C source-object key headers for the object being copied.
*)expected_bucket_owner : Account_id.t option;Expected owner for the destination bucket.
*)source_expected_bucket_owner : Account_id.t option;Expected owner for the source bucket.
*)}CopyObject request options.
type result = {etag : Etag.t option;Destination object ETag.
*)last_modified : Ptime.t option;Destination last-modified timestamp returned in the copy payload.
*)version_id : Version_id.t option;Destination object version id.
*)copy_source_version_id : Version_id.t option;Source version id reported by S3.
*)response : Awskit.Response.t;Raw response metadata.
*)}CopyObject result metadata.
val default_options : optionsval options :
?source_version_id:Version_id.t ->
?source_preconditions:Preconditions.Copy_source.t ->
?metadata_directive:metadata_directive ->
?storage_class:Storage_class.t ->
?checksum_algorithm:Checksum.Algorithm.t ->
?destination_encryption:Encryption.Destination.t ->
?source_encryption:Encryption.Source.t ->
?expected_bucket_owner:Account_id.t ->
?source_expected_bucket_owner:Account_id.t ->
unit ->
(options, Awskit.Error.t) Stdlib.resultBuild CopyObject options.
val options_exn :
?source_version_id:Version_id.t ->
?source_preconditions:Preconditions.Copy_source.t ->
?metadata_directive:metadata_directive ->
?storage_class:Storage_class.t ->
?checksum_algorithm:Checksum.Algorithm.t ->
?destination_encryption:Encryption.Destination.t ->
?source_encryption:Encryption.Source.t ->
?expected_bucket_owner:Account_id.t ->
?source_expected_bucket_owner:Account_id.t ->
unit ->
optionsLike options, but raises on validation failure.