Skip to content

SendApiAsset

Source: src/AWS/DataExchange/SendApiAsset.ts

Runtime binding for dataexchange:SendApiAsset.

Invokes an API asset of an entitled API_GATEWAY_API data set — the Data Exchange data plane proxies the request to the provider’s API Gateway. The data set id is injected from the binding; pass the revision and asset ids of the API asset to call. Provide the implementation with Effect.provide(AWS.DataExchange.SendApiAssetHttp).

const sendApiAsset = yield* AWS.DataExchange.SendApiAsset(dataSet);
// runtime
const response = yield* sendApiAsset({
RevisionId: revisionId,
AssetId: assetId,
Method: "GET",
Path: "/prices",
});