Skip to content

StartSyncExecution

Source: src/AWS/StepFunctions/StartSyncExecution.ts

Runtime binding for states:StartSyncExecution.

Bind this operation to an EXPRESS StateMachine inside a function runtime to run the workflow synchronously — the call returns once the execution finishes, with its status and output. Not available for STANDARD workflows.

const startSyncExecution = yield* StepFunctions.StartSyncExecution(machine);
const result = yield* startSyncExecution({
input: JSON.stringify({ value: 21 }),
});
if (result.status === "SUCCEEDED") {
const output = JSON.parse(String(result.output));
}