| 1 | import * as amplify from "@distilled.cloud/aws/amplify"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeAmplifyHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { GenerateAccessLogs } from "./GenerateAccessLogs.ts"; |
| 5 | |
| 6 | export const GenerateAccessLogsHttp = Layer.effect( |
| 7 | GenerateAccessLogs, |
| 8 | makeAmplifyHttpBinding({ |
| 9 | name: "GenerateAccessLogs", |
| 10 | operation: amplify.generateAccessLogs, |
| 11 | actions: ["amplify:GenerateAccessLogs"], |
| 12 | resources: (app) => [app.appArn], |
| 13 | }), |
| 14 | ); |