| 1 | import * as batch from "@distilled.cloud/aws/batch"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeBatchQueueHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ListJobs } from "./ListJobs.ts"; |
| 5 | |
| 6 | export const ListJobsHttp = Layer.effect( |
| 7 | ListJobs, |
| 8 | // batch:ListJobs does not support resource-level IAM. |
| 9 | makeBatchQueueHttpBinding({ |
| 10 | tag: "AWS.Batch.ListJobs", |
| 11 | operation: batch.listJobs, |
| 12 | actions: ["batch:ListJobs"], |
| 13 | wildcardIam: true, |
| 14 | }), |
| 15 | ); |