You can call a single endpoint in the AWS Data Exchange console.
To make an API call from the console
-
Open and sign in to the AWS Data Exchange console
. -
From the left navigation pane, under My subscriptions, choose Entitled data.
-
Choose the product titled AWS Data Exchange for APIs (Test Product) and then choose the AWS Data Exchange for APIs data set.
-
Under the Revisions tab, choose the revision.
-
Under API assets, choose the API.
You will see the sample Code structure and OpenApi 3.0 specification to structure your API request, which you can use in the AWS Command Line Interface to call the API.
-
Under Integration notes, choose Copy to copy the Code structure and then paste it into the AWS CLI.
-
Replace the sample values with the parameter key-value pairs you need using the information in the specification documentation.
Following is a sample API request for AWS Data Exchange for APIs (Test Product).
aws dataexchange send-api-asset \ --data-set-id 8d494cba5e4720e5f6072e280daf70a8 \ --revision-id b655d5be3da04fcbdca21a5a2932d789 \ --asset-id 8550cfab16b444a794402f2c3f11eae1 \ --method
POST
\ --path "someresource
" \ --query-string-parameters 'param1=value1,param2=value2
' \ --request-headers 'header=header_value
' \ --body "{\"body_param
\":\"body_param_value
\"}"