AWS S3

Copy object

Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Create a copy of an object that is already stored in Amazon S3.

Inputs

Champ

Type

Description

region [required]

enum

default: us-east-1

sourceBucket [required]

string

Source bucket name of the object to copy.

sourceKey [required]

string

Source key name of the object to copy.

destinationKey [required]

string

Destination key name of the object to copy.

destinationBucket

string

Destination bucket name of the object to copy. If not defined, the destination bucket is the same as the source bucket.

expectedSourceBucketOwner

string

The account ID of the expected source bucket owner. If the source bucket is owned by a different account, the request fails with an HTTP 403 (Access Denied) error.

expectedBucketOwner

string

The account ID of the expected destination bucket owner. If the destination bucket is owned by a different account, the request fails with an HTTP 403 (Access Denied) error.

Outputs

Expand All

Champ

Type

Description

copyObjectResult

object

Container for all response elements.

ETag

string

Returns the ETag of the new object. The ETag reflects only changes to the contents of an object, not its metadata.

LastModified

date-time

Creation date of the object.

ChecksumCRC32

string

The base64-encoded, 32-bit CRC32 checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

ChecksumCRC32C

string

The base64-encoded, 32-bit CRC32C checksum of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

ChecksumSHA1

string

The base64-encoded, 160-bit SHA-1 digest of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

ChecksumSHA256

string

The base64-encoded, 256-bit SHA-256 digest of the object. This will only be present if it was uploaded with the object. With multipart uploads, this may not be a checksum value of the object. For more information about how checksums are calculated with multipart uploads, see Checking object integrity in the Amazon S3 User Guide.

versionId

string

Version ID of the newly created copy. This functionality is not supported for directory buckets.

amzRequestId [required]

string