@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.51 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 ContinueServiceDeploymentRequest extends ECS.ContinueServiceDeploymentRequest {}
7
8 /**
9 * Runtime binding for `ecs:ContinueServiceDeployment`.
10 *
11 * Bind this operation to a `Service` inside a function runtime to get a
12 * callable that resumes a blue/green deployment paused at a lifecycle-hook
13 * stage — the canonical consumer is the deployment lifecycle-hook Lambda
14 * that validates the green revision and then approves (or vetoes) the
15 * traffic shift. The host is granted `ecs:ContinueServiceDeployment` on the
16 * bound service's deployments.
17 * ### Service Deployments
18 * **Example:** Approve a Lifecycle-Hook Stage
19 * ```typescript
20 * const continueServiceDeployment =
21 * yield* AWS.ECS.ContinueServiceDeployment(service);
22 *
23 * yield* continueServiceDeployment({
24 * serviceDeploymentArn: deploymentArn,
25 * hookId,
26 * });
27 * ```
28 *
29 * @binding
30 */
31 export interface ContinueServiceDeployment extends Binding.Service<
32 ContinueServiceDeployment,
33 "AWS.ECS.ContinueServiceDeployment",
34 (
35 service: Service,
36 ) => Effect.Effect<
37 (
38 request: ContinueServiceDeploymentRequest,
39 ) => Effect.Effect<ECS.ContinueServiceDeploymentResponse, ECS.ContinueServiceDeploymentError>
40 >
41 > {}
42 export const ContinueServiceDeployment = Binding.Service<ContinueServiceDeployment>(
43 "AWS.ECS.ContinueServiceDeployment",
44 );