s3copy()

Copies an object in S3 from one bucket to an other.

s3copy( srcBucketName=string, srcObjectName=string, trgBucketName=string, trgObjectName=string, accessKeyId=string, secretAccessKey=string, timeout=number );

Returns: void

Argument Description Default
srcBucketName
string, required

Name of the source bucket of your object to copy

Alias: srcBucket, sourceBucketName, sourceBucket

srcObjectName
string, required

Name of the source object (path) within the bucket of your object to copy

Alias: sourceObjectName, srcObject, sourceObject

trgBucketName
string, required

Name of the target bucket of your object to copy

Alias: trgBucket, targetBucketName, targetBucket

trgObjectName
string, optional

Name of the target object (path)for the target bucket. If not defined the source obbject name is used.

Alias: targetObjectName, trgObject, targetObject

accessKeyId
string, optional

S3 accessKeyId, if not defined it checks the system property/environment variable for [lucee.s3.accesskeyid].

Alias: accessKey

secretAccessKey
string, optional

S3 secretAccessKey, if not defined it checks the system property/environment variable for [lucee.s3.secretaccesskey].

Alias: secretkey

timeout
number, optional

timeout for this execution

10000

Examples

There are currently no examples for this function

See also