Copies a source object to a new destination in Amazon S3.
By default, all object metadata for the source object will be copied to the new destination object. The Amazon S3 Acccess Control List (ACL) is not copied to the new object; the new object will have the default Amazon S3 ACL, {@link CannedAccessControlList#Private}.
To copy an object, the caller's account must have read access to the source object and write access to the destination bucket
This method only exposes the basic options for copying an Amazon S3 object. Additional options are available by calling the {@link AmazonS3Client#copyObject(CopyObjectRequest)} method, includingconditional constraints for copying objects, setting ACLs, overwriting object metadata, etc.
@param sourceBucketName The name of the bucket containing the source object to copy. @param sourceKey The key in the source bucket under which the source object is stored. @param destinationBucketName The name of the bucket in which the new object will be created. This may be the same name as the source bucket's. @param destinationKey The key in the destination bucket under which the new object will be created. @return A {@link CopyObjectResult} object containing the informationreturned by Amazon S3 for the newly created object. @throws AmazonClientException If any errors are encountered on the client while making the request or handling the response. @throws AmazonServiceException If any errors occurred in Amazon S3 while processing the request. @see {@link AmazonS3Client#copyObject(CopyObjectRequest copyObjectRequest)}
|
|
|
|
|
|
|
|