Skip to content

GetWorkflowExecution

Source: src/AWS/ImageBuilder/GetWorkflowExecution.ts

Runtime binding for imagebuilder:GetWorkflowExecution.

Reads the runtime state of one workflow execution (a build/test/distribute workflow run within an image build) — its status, step counts, and timing. Workflow executions are created dynamically by builds, so this is an account-level binding: pass an id from ListWorkflowExecutions. Provide the implementation with Effect.provide(AWS.ImageBuilder.GetWorkflowExecutionHttp).

// init — account-level binding, no resource argument
const getWorkflowExecution = yield* AWS.ImageBuilder.GetWorkflowExecution();
// runtime
const execution = yield* getWorkflowExecution({ workflowExecutionId });
yield* Effect.log(`${execution.type} workflow is ${execution.status}`);