- request (CopyPartRequest)
- The CopyPartRequest that defines the parameters of the operation.
You must initiate a multipart upload before you can copy a part.
Your CopyPart request must include an upload ID and a part number. The upload ID is the ID returned by Amazon S3 in response to your Initiate Multipart Upload request. Part number can be any number between 1 and 10,000, inclusive. A part number uniquely identifies a part and also defines its position within the object being uploaded. If you copy a part using the same part number as an existing part, that part is overwritten.
When you copy a part, the CopyPartResponse response contains an ETag property. You should record this ETag property value and the part number. After uploading all parts, you must send a CompleteMultipartUpload request. At that time Amazon S3 constructs a complete object by concatenating all the parts you uploaded, in ascending order based on the part numbers. The CompleteMultipartUpload request requires you to send all the part numbers and the corresponding ETag values.