| 1 | import * as ECS from "@distilled.cloud/aws/ecs"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeEcsServiceHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { DescribeServiceDeployments } from "./DescribeServiceDeployments.ts"; |
| 5 | |
| 6 | export const DescribeServiceDeploymentsHttp = Layer.effect( |
| 7 | DescribeServiceDeployments, |
| 8 | makeEcsServiceHttpBinding({ |
| 9 | tag: "AWS.ECS.DescribeServiceDeployments", |
| 10 | operation: ECS.describeServiceDeployments, |
| 11 | actions: ["ecs:DescribeServiceDeployments"], |
| 12 | // Authorizes against the service-deployment resource: |
| 13 | // arn:aws:ecs:{region}:{account}:service-deployment/{cluster}/{service}/* |
| 14 | resources: ["service-deployment"], |
| 15 | }), |
| 16 | ); |