@devries-cameron20 / t3code Mirror · read-only
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 04:45 UTC

main
ts 44 lines 1.44 KB
Raw
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 ListServiceDeploymentsRequest extends Omit<
7 ECS.ListServiceDeploymentsRequest,
8 "service" | "cluster"
9 > {}
10
11 /**
12 * Runtime binding for `ecs:ListServiceDeployments`.
13 *
14 * Bind this operation to a `Service` inside a function runtime to get a
15 * callable that lists the bound service's deployments (newest first). The
16 * service and cluster ARNs are injected automatically and the host is
17 * granted `ecs:ListServiceDeployments` on the service.
18 * ### Service Deployments
19 * **Example:** Find the In-Progress Deployment
20 * ```typescript
21 * const listServiceDeployments = yield* AWS.ECS.ListServiceDeployments(service);
22 *
23 * const response = yield* listServiceDeployments({
24 * status: ["IN_PROGRESS"],
25 * });
26 * const deploymentArn = response.serviceDeployments?.[0]?.serviceDeploymentArn;
27 * ```
28 *
29 * @binding
30 */
31 export interface ListServiceDeployments extends Binding.Service<
32 ListServiceDeployments,
33 "AWS.ECS.ListServiceDeployments",
34 (
35 service: Service,
36 ) => Effect.Effect<
37 (
38 request: ListServiceDeploymentsRequest,
39 ) => Effect.Effect<ECS.ListServiceDeploymentsResponse, ECS.ListServiceDeploymentsError>
40 >
41 > {}
42 export const ListServiceDeployments = Binding.Service<ListServiceDeployments>(
43 "AWS.ECS.ListServiceDeployments",
44 );