The best way to control Claude Code, Codex and more from any computer or phone
| 1 | import type * as ECS from "@distilled.cloud/aws/ecs"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Service } from "./Service.ts"; |
| 5 | |
| 6 | export interface DescribeServiceDeploymentsRequest extends ECS.DescribeServiceDeploymentsRequest {} |
| 7 | |
| 8 | /** |
| 9 | * Runtime binding for `ecs:DescribeServiceDeployments`. |
| 10 | * |
| 11 | * Bind this operation to a `Service` inside a function runtime to get a |
| 12 | * callable that describes the bound service's deployments — rollout state, |
| 13 | * circuit-breaker status, target service revision. The host is granted |
| 14 | * `ecs:DescribeServiceDeployments` on the service's deployments (deployment |
| 15 | * ARNs are only known at runtime, e.g. from `ListServiceDeployments`). |
| 16 | * ### Service Deployments |
| 17 | * **Example:** Inspect a Deployment's Rollout State |
| 18 | * ```typescript |
| 19 | * const describeServiceDeployments = |
| 20 | * yield* AWS.ECS.DescribeServiceDeployments(service); |
| 21 | * |
| 22 | * const response = yield* describeServiceDeployments({ |
| 23 | * serviceDeploymentArns: [deploymentArn], |
| 24 | * }); |
| 25 | * const status = response.serviceDeployments?.[0]?.status; |
| 26 | * ``` |
| 27 | * |
| 28 | * @binding |
| 29 | */ |
| 30 | export interface DescribeServiceDeployments extends Binding.Service< |
| 31 | DescribeServiceDeployments, |
| 32 | "AWS.ECS.DescribeServiceDeployments", |
| 33 | ( |
| 34 | service: Service, |
| 35 | ) => Effect.Effect< |
| 36 | ( |
| 37 | request: DescribeServiceDeploymentsRequest, |
| 38 | ) => Effect.Effect<ECS.DescribeServiceDeploymentsResponse, ECS.DescribeServiceDeploymentsError> |
| 39 | > |
| 40 | > {} |
| 41 | export const DescribeServiceDeployments = Binding.Service<DescribeServiceDeployments>( |
| 42 | "AWS.ECS.DescribeServiceDeployments", |
| 43 | ); |