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