Copy Item To a Folder

Copy an item to a folder in AWS S3.

Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

copy an item to a folder

What does it do? This is the base syntax for the procedure.

Where does it go? This phrase should be written on a new line.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ⛔ No — This phrase does not require input data.

the item is

What does it do? Specifies the item (file or folder) to copy.

Where does it go? This phrase should be indented beneath copy an item to a folder with. The with keyword is added to specify additional instructions.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — An s3 file reference or s3 folder reference needs to be specified.

Example: the item is the above

the folder is

What does it do? Specifies the folder to copy the item to.

Where does it go? This phrase should be indented beneath copy an item to a folder with. The with keyword is added to specify additional instructions.

Is it required? ✅ Yes — This phrase is required in the syntax.

Does it require input data? ✅ Yes — An s3 folder reference needs to be specified.

Example: the folder is the above

the conflict behavior is

What does it do? Specifies the behavior to use on conflict scenarios. It should be one of the following values: ('fail', 'replace', 'rename').

Where does it go? This phrase should be indented beneath copy an item to a folder with. The with keyword is added to specify additional instructions.

Is it required? 🌟 No — This phrase is optional in the syntax.

Does it require input data? ✅ Yes — This phrase requires input data.

Default: 'fail'

Example: the conflict behavior is 'fail'

Examples

1. Copy an item to new folder in AWS S3

get a folder at "bucket_name/"
use the above as the folder
get some folder's items with
    the folder is the folder
    the path prefix is "kognitos"
use the above as the references
get the first reference as the item
get a folder at "bucket_name/google"
use the above as the folder
copy item to the folder with
    the item is the item
    the folder is the folder

Last updated

Was this helpful?