@@ -11,7 +11,7 @@ import {
1111 CopyObjectCommand ,
1212 PutObjectCommand ,
1313} from "@aws-sdk/client-s3" ;
14- import * as data from "./object_name.json" assert { type : "json " } ;
14+ import data from "./object_name.json" assert { type : "json " } ;
1515import { readFile } from "node:fs/promises" ;
1616import {
1717 ScenarioInput ,
@@ -288,7 +288,7 @@ export const replAction = (scenarios, client) =>
288288
289289 const copySource = `${ bucket } /${ key } ` ;
290290 // Optionally edit the default key name prefix of the copied object in ./object_name.json.
291- const name = data . default . name ;
291+ const name = data . name ;
292292 const copiedKey = `${ name } ${ key } ` ;
293293 try {
294294 await client . send (
@@ -314,7 +314,7 @@ export const replAction = (scenarios, client) =>
314314 const ETag = await getEtag ( client , bucket , key ) ;
315315 const copySource = `${ bucket } /${ key } ` ;
316316 // Optionally edit the default key name prefix of the copied object in ./object_name.json.
317- const name = data . default . name ;
317+ const name = data . name ;
318318 const copiedKey = `${ name } ${ key } ` ;
319319
320320 try {
@@ -340,7 +340,7 @@ export const replAction = (scenarios, client) =>
340340 const key = "file01.txt" ;
341341 const copySource = `${ bucket } /${ key } ` ;
342342 // Optionally edit the default key name prefix of the copied object in ./object_name.json.
343- const name = data . default . name ;
343+ const name = data . name ;
344344 const copiedKey = `${ name } ${ key } ` ;
345345
346346 const date = new Date ( ) ;
@@ -369,7 +369,7 @@ export const replAction = (scenarios, client) =>
369369 const key = "file01.txt" ;
370370 const copySource = `${ bucket } /${ key } ` ;
371371 // Optionally edit the default key name prefix of the copied object in ./object_name.json.
372- const name = data . default . name ;
372+ const name = data . name ;
373373 const copiedKey = `${ name } ${ key } ` ;
374374
375375 const date = new Date ( ) ;
0 commit comments