| 1 | import * as Lambda from "@distilled.cloud/aws/lambda"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeFunctionHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { InvokeFunction } from "./InvokeFunction.ts"; |
| 5 | |
| 6 | export const InvokeFunctionHttp = Layer.effect( |
| 7 | InvokeFunction, |
| 8 | makeFunctionHttpBinding({ |
| 9 | tag: "AWS.Lambda.InvokeFunction", |
| 10 | operation: Lambda.invoke, |
| 11 | actions: ["lambda:InvokeFunction"], |
| 12 | }), |
| 13 | ); |