| 1 | import * as ECS from "@distilled.cloud/aws/ecs"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeEcsServiceHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ListServiceDeployments } from "./ListServiceDeployments.ts"; |
| 5 | |
| 6 | export const ListServiceDeploymentsHttp = Layer.effect( |
| 7 | ListServiceDeployments, |
| 8 | makeEcsServiceHttpBinding({ |
| 9 | tag: "AWS.ECS.ListServiceDeployments", |
| 10 | operation: ECS.listServiceDeployments, |
| 11 | actions: ["ecs:ListServiceDeployments"], |
| 12 | // `ecs:ListServiceDeployments` authorizes against the service itself. |
| 13 | resources: ["service"], |
| 14 | inject: true, |
| 15 | }), |
| 16 | ); |