Skip to content

ListImagePipelineImages

Source: src/AWS/ImageBuilder/ListImagePipelineImages.ts

Runtime binding for imagebuilder:ListImagePipelineImages.

Enumerates the image build versions the bound ImagePipeline has produced — the building block of a “latest AMI from this pipeline” lookup or a build-history dashboard. The pipeline’s ARN is injected from the binding. Provide the implementation with Effect.provide(AWS.ImageBuilder.ListImagePipelineImagesHttp).

// init — bind the operation to the pipeline
const listBuilds = yield* AWS.ImageBuilder.ListImagePipelineImages(
pipeline,
);
// runtime
const { imageSummaryList } = yield* listBuilds();
const available = (imageSummaryList ?? []).filter(
(image) => image.state?.status === "AVAILABLE",
);