ValidateStateMachineDefinition
Source:
src/AWS/StepFunctions/ValidateStateMachineDefinition.ts
Runtime binding for states:ValidateStateMachineDefinition — AWS’s
static ASL validator (the Tier-4 check op for the Step Functions DSL).
Service-scoped (no resource argument): validates any definition string
without creating or updating a state machine. StateMachine’s reconcile
runs this same check as a pre-flight; bind it in a function runtime to
validate definitions on demand (e.g. compiled Sfn programs before a
deployment pipeline applies them).
Validating Definitions
Section titled “Validating Definitions”const validate = yield* StepFunctions.ValidateStateMachineDefinition();
const report = yield* validate({ definition: JSON.stringify(definition), type: "EXPRESS", severity: "ERROR",});// report.result === "OK" | "FAIL"; report.diagnostics lists findings