Skip to content

GetAsset

Source: src/AWS/DataExchange/GetAsset.ts

Runtime binding for dataexchange:GetAsset.

Reads one asset of the bound revision — name, type-specific details (S3 snapshot size, API Gateway endpoint, …), and timestamps. The data set and revision ids are injected from the binding. Provide the implementation with Effect.provide(AWS.DataExchange.GetAssetHttp).

const getAsset = yield* AWS.DataExchange.GetAsset(revision);
// runtime
const asset = yield* getAsset({ AssetId: assetId });
yield* Effect.log(`asset ${asset.Name}`);