AWS S3

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

Rename an object’s key in a bucket. For cases where users want to make changes across buckets they should use the move action first.

Inputs

Champ

Type

Description

region [required]

enum

default: us-east-1

bucket [required]

string

Bucket name of the object to rename.

originalKey [required]

string

Original key of the object to rename.

newKey [required]

string

New key of the object to rename.

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.