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