Skip to content

GetDataSet

Source: src/AWS/DataExchange/GetDataSet.ts

Runtime binding for dataexchange:GetDataSet.

Reads the bound data set’s detail — name, description, asset type, origin (OWNED or ENTITLED), and origin details. The data set id is injected from the binding. Provide the implementation with Effect.provide(AWS.DataExchange.GetDataSetHttp).

// init — bind the operation to the data set
const getDataSet = yield* AWS.DataExchange.GetDataSet(dataSet);
// runtime
const detail = yield* getDataSet();
yield* Effect.log(`data set ${detail.Name} (${detail.AssetType})`);