| 1 | import type * as imagebuilder from "@distilled.cloud/aws/imagebuilder"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for `imagebuilder:ListImagePackages`. |
| 7 | * |
| 8 | * Lists the OS packages that Systems Manager Inventory recorded inside an |
| 9 | * image at build time (only available once the build is `AVAILABLE`). Build |
| 10 | * versions are created dynamically by pipeline runs, so this is an |
| 11 | * account-level binding. Provide the implementation with |
| 12 | * `Effect.provide(AWS.ImageBuilder.ListImagePackagesHttp)`. |
| 13 | * ### Observing Builds |
| 14 | * **Example:** List the Packages Inside a Built Image |
| 15 | * ```typescript |
| 16 | * // init — account-level binding, no resource argument |
| 17 | * const listImagePackages = yield* AWS.ImageBuilder.ListImagePackages(); |
| 18 | * |
| 19 | * // runtime |
| 20 | * const { imagePackageList } = yield* listImagePackages({ |
| 21 | * imageBuildVersionArn, |
| 22 | * }); |
| 23 | * ``` |
| 24 | * |
| 25 | * @binding |
| 26 | */ |
| 27 | export interface ListImagePackages extends Binding.Service< |
| 28 | ListImagePackages, |
| 29 | "AWS.ImageBuilder.ListImagePackages", |
| 30 | () => Effect.Effect< |
| 31 | ( |
| 32 | request: imagebuilder.ListImagePackagesRequest, |
| 33 | ) => Effect.Effect< |
| 34 | imagebuilder.ListImagePackagesResponse, |
| 35 | imagebuilder.ListImagePackagesError |
| 36 | > |
| 37 | > |
| 38 | > {} |
| 39 | export const ListImagePackages = Binding.Service<ListImagePackages>( |
| 40 | "AWS.ImageBuilder.ListImagePackages", |
| 41 | ); |