Versioning
By default, x-amz-copy-source
identifies the latest version of
an object to copy. (If the latest version is a Delete Marker, Amazon S3 behaves as if
the object was deleted.) To copy a different version, use the versionId
sub-resource.
If you enable Versioning on the target bucket, Amazon S3 generates a unique version ID
for the object being copied. This version ID is different from the version ID of the
source object. Amazon S3 returns the version ID of the copied object in the x-amz-version-id
response header in the response.
If you do not enable Versioning or suspend it on the target bucket, the version ID
Amazon S3 generates is always null
.
To see sample requests that use Versioning, see Sample Request Copying a Specified Version of an Object.