Answers for "nidejs aws sdk s3 copy"

0

nidejs aws sdk s3 copy

var params = {
  Bucket: "destinationbucket", 
  CopySource: "/sourcebucket/sourceKeyName", 
  Key: "targetKeyName"
 };
 s3.copyObject(params, function(err, data) {
   if (err) console.log(err, err.stack); // an error occurred
   else     console.log(data);           // successful response
 });
Posted by: Guest on March-02-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language