ListWorkflowVersions
Source:
src/AWS/MWAAServerless/ListWorkflowVersions.ts
Runtime binding for airflow-serverless:ListWorkflowVersions.
Lists the versions of the bound Workflow (each update to the
workflow’s definition or configuration publishes a new version). Useful
for pinning StartWorkflowRun to a specific version. Provide the
implementation with
Effect.provide(AWS.MWAAServerless.ListWorkflowVersionsHttp).
Observing Workflows
Section titled “Observing Workflows”// init — bind the operation to the workflowconst listWorkflowVersions = yield* AWS.MWAAServerless.ListWorkflowVersions(workflow);
// runtimeconst { WorkflowVersions } = yield* listWorkflowVersions();const latest = WorkflowVersions?.find((v) => v.IsLatestVersion);