GetImage
Source:
src/AWS/ImageBuilder/GetImage.ts
Runtime binding for imagebuilder:GetImage.
Reads an image build version by ARN — its state (BUILDING, AVAILABLE,
CANCELLED, FAILED, …) and the AMIs/containers it produced. Build
versions are created dynamically by pipeline runs, so this is an
account-level binding: pass the imageBuildVersionArn returned by
StartImagePipelineExecution or found via ListImagePipelineImages.
Provide the implementation with
Effect.provide(AWS.ImageBuilder.GetImageHttp).
Observing Builds
Section titled “Observing Builds”// init — account-level binding, no resource argumentconst getImage = yield* AWS.ImageBuilder.GetImage();
// runtimeconst { image } = yield* getImage({ imageBuildVersionArn });yield* Effect.log(`build is ${image?.state?.status}`);