Skip to content

DescribeFlowExecutionRecords

Source: src/AWS/AppFlow/DescribeFlowExecutionRecords.ts

Runtime binding for appflow:DescribeFlowExecutionRecords.

Bind this operation to a Flow in the function’s init phase to get a callable that pages through the flow’s run history — each record carries the executionId, status, timing, and record counts of one run. The flow name is injected automatically and appflow:DescribeFlowExecutionRecords is granted on the flow. Provide the implementation with Effect.provide(AWS.AppFlow.DescribeFlowExecutionRecordsHttp).

// init — bind the operation to the flow
const describeFlowExecutionRecords =
yield* AWS.AppFlow.DescribeFlowExecutionRecords(flow);
// runtime — read the most recent run
const records = yield* describeFlowExecutionRecords({ maxResults: 1 });
const latest = records.flowExecutions?.[0];
// latest?.executionStatus === "Successful"