| 1 | import * as batch from "@distilled.cloud/aws/batch"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeBatchJobHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { CancelJob } from "./CancelJob.ts"; |
| 5 | |
| 6 | export const CancelJobHttp = Layer.effect( |
| 7 | CancelJob, |
| 8 | // Job ARNs (arn:…:job/{jobId}) are only known at runtime, so the statement |
| 9 | // cannot enumerate them at deploy time. |
| 10 | makeBatchJobHttpBinding({ |
| 11 | tag: "AWS.Batch.CancelJob", |
| 12 | operation: batch.cancelJob, |
| 13 | actions: ["batch:CancelJob"], |
| 14 | }), |
| 15 | ); |