Skip to content

ListExecutions

Source: src/AWS/BCMDataExports/ListExecutions.ts

Runtime binding for bcm-data-exports:ListExecutions.

Bind this operation to an Export to page through the export’s historical executions (delivery runs) from inside a function runtime. Useful for delivery dashboards and monitors that scan for failed refreshes. Provide the implementation with Effect.provide(AWS.BCMDataExports.ListExecutionsHttp).

// init — bind the operation to the export
const listExecutions = yield* AWS.BCMDataExports.ListExecutions(cur);
// runtime
const result = yield* listExecutions({ MaxResults: 25 });
const failed = (result.Executions ?? []).filter(
(execution) =>
execution.ExecutionStatus.StatusCode === "DELIVERY_FAILURE",
);