Skip to content

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).

// init — bind the operation to the workflow
const listWorkflowVersions =
yield* AWS.MWAAServerless.ListWorkflowVersions(workflow);
// runtime
const { WorkflowVersions } = yield* listWorkflowVersions();
const latest = WorkflowVersions?.find((v) => v.IsLatestVersion);