S3 Object Copy Operations
Object copy operations copy the contents of an S3 objects to or from NonStop Enscribe files. The “copy object” request is used to copy an S3 object to the NonStop, copy an S3 object to another name or bucket in S3, or to copy a file from the NonStop to an S3 object.
Copy Request
DEF S3-COPY-OBJECT-RQ.
02 RQ-HDR TYPE S3-HEADER-RQ.
02 SOURCE-OBJECT TYPE CHARACTER 256.
02 TARGET-OBJECT TYPE CHARACTER 256.
END
Copy Reply
DEF S3-COPY-OBJECT-RP.
02 RP-HDR TYPE S3-HEADER-RP.
END
Copy Request Processing
S3Serv evaluates the supplied names to determine the copy operation to perform:
Source Name | Target Name | Operation |
---|---|---|
S3 URI | S3 URI | Copy an S3 object to the S3 destination. |
S3 URI | NonStop file name | Copy the S3 object to the target NonStop file, replacing the file if it already exists. |
NonStop file name | S3 URI | Copy the contents of the designated NonStop file to the target S3 object, replacing it if it already exists. |
NonStop file name | NonStop file name | Not supported. |