Skip to content

GetExport

Source: src/AWS/BCMDataExports/GetExport.ts

Runtime binding for bcm-data-exports:GetExport.

Bind this operation to an Export to read the export’s live definition — SQL query, table configurations, S3 destination, and refresh cadence — from inside a function runtime. Useful for cost dashboards that surface where their billing data lands. Provide the implementation with Effect.provide(AWS.BCMDataExports.GetExportHttp).

// init — bind the operation to the export
const getExport = yield* AWS.BCMDataExports.GetExport(cur);
// runtime
const { Export: definition } = yield* getExport();
const bucket = definition?.DestinationConfigurations.S3Destination.S3Bucket;