| 1 | import * as ECS from "@distilled.cloud/aws/ecs"; |
| 2 | import * as Layer from "effect/Layer"; |
| 3 | import { makeEcsClusterHttpBinding } from "./BindingHttp.ts"; |
| 4 | import { ListContainerInstances } from "./ListContainerInstances.ts"; |
| 5 | |
| 6 | export const ListContainerInstancesHttp = Layer.effect( |
| 7 | ListContainerInstances, |
| 8 | makeEcsClusterHttpBinding({ |
| 9 | tag: "AWS.ECS.ListContainerInstances", |
| 10 | operation: ECS.listContainerInstances, |
| 11 | actions: ["ecs:ListContainerInstances"], |
| 12 | // `ecs:ListContainerInstances` authorizes against the cluster. |
| 13 | resources: ["cluster"], |
| 14 | }), |
| 15 | ); |