| 1 | import * as amplify from "@distilled.cloud/aws/amplify"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import * as Output from "../../Output.ts"; |
| 4 | import { makeAmplifyHttpBinding } from "./BindingHttp.ts"; |
| 5 | import { DeleteJob } from "./DeleteJob.ts"; |
| 6 | |
| 7 | export const DeleteJobHttp = Layer.effect( |
| 8 | DeleteJob, |
| 9 | makeAmplifyHttpBinding({ |
| 10 | name: "DeleteJob", |
| 11 | operation: amplify.deleteJob, |
| 12 | actions: ["amplify:DeleteJob"], |
| 13 | resources: (app) => [Output.interpolate`${app.appArn}/branches/*/jobs/*`], |
| 14 | }), |
| 15 | ); |