Skip to content

GetWorkflowStepExecution

Source: src/AWS/ImageBuilder/GetWorkflowStepExecution.ts

Runtime binding for imagebuilder:GetWorkflowStepExecution.

Reads the runtime state of one workflow step — its action, status, rollback status, inputs/outputs, and message. Step executions are created dynamically by builds, so this is an account-level binding: pass an id from ListWorkflowStepExecutions or ListWaitingWorkflowSteps. Provide the implementation with Effect.provide(AWS.ImageBuilder.GetWorkflowStepExecutionHttp).

// init — account-level binding, no resource argument
const getWorkflowStepExecution =
yield* AWS.ImageBuilder.GetWorkflowStepExecution();
// runtime
const step = yield* getWorkflowStepExecution({ stepExecutionId });
yield* Effect.log(`step ${step.name} is ${step.status}`);