AmazonS3copy()

Amazon S3: Copies the file from the given bucket/key to a new bucket/key

Usage

BOOLEAN = AmazonS3copy( datasource, srcbucket, srckey, destbucket, destkey, srcaes256key, destaes256key, deststorageclass, destacl )
Argument Summary
datasource Amazon datasource
srcbucket source bucket
srckey source key
destbucket destination bucket
destkey destination key
srcaes256key source aes256key - see AmazonS3Write() [optional]
destaes256key optional - destination aes256key - see AmazonS3Write() [optional]
deststorageclass optional - destination storage class - Standard or ReducedRedundancy [optional]
destacl optional - destination ACL to set: private | public-read | public-read-write | authenticated-read | bucket-owner-read | bucket-owner-full-control | log-delivery-write [optional]

Calling

Supports named-parameter calling allowing you to use the function like:

AmazonS3copy(
   datasource=?, 
   srcbucket=?, 
   srckey=?, 
   destbucket=?, 
   destkey=?, 
   srcaes256key=?, 
   destaes256key=?, 
   deststorageclass=?, 
   destacl=?
);

Supports passing parameters as a structure using ArgumentCollection:

AmazonS3copy( ArgumentCollection={
   datasource : ?, 
   srcbucket : ?, 
   srckey : ?, 
   destbucket : ?, 
   destkey : ?, 
   srcaes256key : ?, 
   destaes256key : ?, 
   deststorageclass : ?, 
   destacl : ?
} );