1var params = {
2 Bucket: "destinationbucket",
3 CopySource: "/sourcebucket/sourceKeyName",
4 Key: "targetKeyName"
5 };
6 s3.copyObject(params, function(err, data) {
7 if (err) console.log(err, err.stack); // an error occurred
8 else console.log(data); // successful response
9 });