📜  nidejs aws sdk s3 复制 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:24.478000             🧑  作者: Mango

代码示例1
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
 });