Skip to content

GetImagePipeline

Source: src/AWS/ImageBuilder/GetImagePipeline.ts

Runtime binding for imagebuilder:GetImagePipeline.

Reads the bound ImagePipeline’s current configuration and state — schedule, status, recipe/infrastructure wiring, and the timestamps of the latest and next scheduled runs. The pipeline’s ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.ImageBuilder.GetImagePipelineHttp).

// init — bind the operation to the pipeline
const getPipeline = yield* AWS.ImageBuilder.GetImagePipeline(pipeline);
// runtime
const { imagePipeline } = yield* getPipeline();
yield* Effect.log(
`${imagePipeline?.name}: ${imagePipeline?.status}, last run ${imagePipeline?.dateLastRun}`,
);