1import * as sqs from "@distilled.cloud/aws/sqs";
2import * as Layer from "effect/Layer";
3import { makeQueueGrantHttpBinding } from "./BindingHttp.ts";
4import { CancelMessageMoveTask } from "./CancelMessageMoveTask.ts";
5
6export 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);