| 1 | import type * as microvms from "@distilled.cloud/aws/lambda-microvms"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { MicrovmImage } from "./MicrovmImage.ts"; |
| 5 | |
| 6 | export interface GetMicrovmImageVersionRequest extends Omit< |
| 7 | microvms.GetMicrovmImageVersionInput, |
| 8 | "imageIdentifier" |
| 9 | > {} |
| 10 | |
| 11 | /** |
| 12 | * Runtime binding for `GetMicrovmImageVersion`. |
| 13 | * |
| 14 | * Bind it to a {@link MicrovmImage} to read the configuration and state of a |
| 15 | * specific image version (the `imageIdentifier` is injected). |
| 16 | * ### Image Reads |
| 17 | * |
| 18 | * @binding |
| 19 | */ |
| 20 | export interface GetMicrovmImageVersion extends Binding.Service< |
| 21 | GetMicrovmImageVersion, |
| 22 | "AWS.Lambda.GetMicrovmImageVersion", |
| 23 | ( |
| 24 | image: MicrovmImage, |
| 25 | ) => Effect.Effect< |
| 26 | ( |
| 27 | request: GetMicrovmImageVersionRequest, |
| 28 | ) => Effect.Effect< |
| 29 | microvms.GetMicrovmImageVersionOutput, |
| 30 | microvms.GetMicrovmImageVersionError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | export const GetMicrovmImageVersion = Binding.Service<GetMicrovmImageVersion>( |
| 35 | "AWS.Lambda.GetMicrovmImageVersion", |
| 36 | ); |