Skip to content

GetAsset

Source: src/AWS/DataZone/GetAsset.ts

Runtime binding for datazone:GetAsset.

Reads an asset in the bound domain — its forms, glossary terms, and latest revision. The domain id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataZone.GetAssetHttp).

// init — bind the operation to the domain
const getAsset = yield* AWS.DataZone.GetAsset(domain);
// runtime
const asset = yield* getAsset({ identifier: assetId });