The best way to control Claude Code, Codex and more from any computer or phone

main
ts 47 lines 1.58 KB
Raw
1 import type * as imagebuilder from "@distilled.cloud/aws/imagebuilder";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { ImagePipeline } from "./ImagePipeline.ts";
5
6 /**
7 * Runtime binding for `imagebuilder:ListImagePipelineImages`.
8 *
9 * Enumerates the image build versions the bound {@link ImagePipeline} has
10 * produced — the building block of a "latest AMI from this pipeline" lookup
11 * or a build-history dashboard. The pipeline's ARN is injected from the
12 * binding. Provide the implementation with
13 * `Effect.provide(AWS.ImageBuilder.ListImagePipelineImagesHttp)`.
14 * ### Observing Pipelines
15 * **Example:** List the Pipeline's Builds
16 * ```typescript
17 * // init — bind the operation to the pipeline
18 * const listBuilds = yield* AWS.ImageBuilder.ListImagePipelineImages(
19 * pipeline,
20 * );
21 *
22 * // runtime
23 * const { imageSummaryList } = yield* listBuilds();
24 * const available = (imageSummaryList ?? []).filter(
25 * (image) => image.state?.status === "AVAILABLE",
26 * );
27 * ```
28 *
29 * @binding
30 */
31 export interface ListImagePipelineImages extends Binding.Service<
32 ListImagePipelineImages,
33 "AWS.ImageBuilder.ListImagePipelineImages",
34 (
35 pipeline: ImagePipeline,
36 ) => Effect.Effect<
37 (
38 request?: Omit<imagebuilder.ListImagePipelineImagesRequest, "imagePipelineArn">,
39 ) => Effect.Effect<
40 imagebuilder.ListImagePipelineImagesResponse,
41 imagebuilder.ListImagePipelineImagesError
42 >
43 >
44 > {}
45 export const ListImagePipelineImages = Binding.Service<ListImagePipelineImages>(
46 "AWS.ImageBuilder.ListImagePipelineImages",
47 );