| 1 | import * as microvms from "@distilled.cloud/aws/lambda-microvms"; |
| 2 | import { GetMicrovm } from "./GetMicrovm.ts"; |
| 3 | import { makeImageBinding } from "./MicrovmBinding.ts"; |
| 4 | |
| 5 | export const GetMicrovmHttp = makeImageBinding({ |
| 6 | binding: GetMicrovm, |
| 7 | name: "GetMicrovm", |
| 8 | actions: ["lambda:GetMicrovm"], |
| 9 | operation: microvms.getMicrovm, |
| 10 | // MicroVM instance ARNs are minted at runtime; scope to the image's |
| 11 | // `microvm:*` glob (this account/region) rather than `["*"]`. |
| 12 | scope: "microvm", |
| 13 | }); |