| 1 | import * as sqs from "@distilled.cloud/aws/sqs"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeQueueGrantHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { CancelMessageMoveTask } from "./CancelMessageMoveTask.ts"; |
| 5 | |
| 6 | export const CancelMessageMoveTaskHttp = Layer.effect( |
| 7 | CancelMessageMoveTask, |
| 8 | // The request identifies the task by `TaskHandle` only; the bound queue |
| 9 | // exists purely to scope the IAM grant to the redrive source. |
| 10 | makeQueueGrantHttpBinding({ |
| 11 | tag: "AWS.SQS.CancelMessageMoveTask", |
| 12 | operation: sqs.cancelMessageMoveTask, |
| 13 | actions: ["sqs:CancelMessageMoveTask"], |
| 14 | }), |
| 15 | ); |