GetExecutionHistory
Source:
src/AWS/StepFunctions/GetExecutionHistory.ts
Runtime binding for states:GetExecutionHistory.
Bind this operation to a StateMachine inside a function runtime
to page through an execution’s event history (state transitions, task
results, failures). IAM access is scoped to executions of the bound
state machine. Not supported by EXPRESS state machines.
Polling Executions
Section titled “Polling Executions”const getExecutionHistory = yield* StepFunctions.GetExecutionHistory(machine);
const { events } = yield* getExecutionHistory({ executionArn, reverseOrder: true, maxResults: 10,});// events[0].type === "ExecutionFailed" carries the error details