Exporting AWS Data Exchange asset revisions to an S3 bucket (AWS SDKs)
You can use the AWS SDKs to export AWS Data Exchange asset revisions to an S3 bucket using the following instructions.
To export a revision to an S3 bucket (AWS SDKs)
-
Create a
CreateJob
request of typeEXPORT_REVISIONS_TO_S3
. -
Include the following in the request:
-
DataSetId
-
Encryption
-
KmsKeyArn
-
Type
-
-
RevisionDestinations
-
Bucket
-
KeyPattern
-
RevisionId
-
-
-
Start the
CreateJob
request with aStartJob
operation that requires theJobId
returned in step 1. -
The newly created assets have a name property equal to the original S3 object's key. The Amazon S3 object key defaults to the key pattern
${Asset.Name}
.You can update the assets' name property after they are created.
For more information about key patterns, see Key patterns when exporting asset revisions from AWS Data Exchange.
Note
If you are using DataSet.Name
as the dynamic reference, you must have the
IAM permission dataexchange:GetDataSet
. For more information, see AWS Data Exchange API permissions: actions and resources
reference.