Skip to content

ListImages

Source: src/AWS/ImageBuilder/ListImages.ts

Runtime binding for imagebuilder:ListImages.

Enumerates the image versions you have access to (owned, shared, or Amazon-managed) — e.g. to discover the latest parent image version. Newly created images can take up to two minutes to appear. Provide the implementation with Effect.provide(AWS.ImageBuilder.ListImagesHttp).

// init — account-level binding, no resource argument
const listImages = yield* AWS.ImageBuilder.ListImages();
// runtime
const { imageVersionList } = yield* listImages({ owner: "Self" });
yield* Effect.log(`account has ${imageVersionList?.length ?? 0} images`);