nidejs aws sdk s3 copy

Solutions on MaxInterview for nidejs aws sdk s3 copy by the best coders in the world

showing results for - "nidejs aws sdk s3 copy"
Amelie
29 Jan 2021
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 });