Skip to content

StopExecution

Source: src/AWS/StepFunctions/StopExecution.ts

Runtime binding for states:StopExecution.

Bind this operation to a StateMachine inside a function runtime to cancel that machine’s running executions. Not supported by EXPRESS workflows.

const stopExecution = yield* StepFunctions.StopExecution(machine);
yield* stopExecution({
executionArn,
error: "OrderCancelled",
cause: "user requested cancellation",
});