Examples

GET example

GET example without -FOLDER/-F command:

GET("S3", " -AK AKSOMEACCESSKEY -SK SkSomeSecretKey/dBLo -R US_EAST_1 -B bucket-for-test -K persons.csv", inputdata)

As the -FOLDER/-F command is not present, the adapter looks for the S3 object directly under the mentioned bucket.

GET example with -FOLDER/-F command:

GET("S3", " -AK AKSOMEACCESSKEY -SK SkSomeSecretKey/dBLo -R US_EAST_1 -B bucket-for-test -F testfolder -K persons.csv", inputdata)

In this case, the adapter prepends the folder name to the key name passed, and the object is accessed from the folder residing under the specified bucket.

PUT example

PUT example without –ENCRYPTION command:

PUT("S3", " -AK AKSOMEACCESSKEY -SK SkSomeSecretKey/dBLo -R US_EAST_1 -B bucket-for-test -K persons.csv ", inputdata)

As –ENCRYPTION command is not present, the object uploaded to Amazon S3 is stored in its raw format.

PUT example with –ENCRYPTION command:

PUT("S3", " -AK AKSOMEACCESSKEY -SK SkSomeSecretKey/dBLo -R US_EAST_1 -B bucket-for-test -K persons.csv -ENCRYPTION KMS ", inputdata)

In this case, the adapter validates the algorithm passed to it and uses the same to set object metadata, which stores the data using the opted encryption technique to Amazon S3.