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