| 1 | import * as sqs from "@distilled.cloud/aws/sqs"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeQueueUrlHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { DeleteMessageBatch } from "./DeleteMessageBatch.ts"; |
| 5 | |
| 6 | export const DeleteMessageBatchHttp = Layer.effect( |
| 7 | DeleteMessageBatch, |
| 8 | makeQueueUrlHttpBinding({ |
| 9 | tag: "AWS.SQS.DeleteMessageBatch", |
| 10 | operation: sqs.deleteMessageBatch, |
| 11 | // Batch entries are authorized by the singular action. |
| 12 | actions: ["sqs:DeleteMessage"], |
| 13 | }), |
| 14 | ); |