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

main
ts 33 lines 1.21 KB
Raw
1 import type * as apprunner from "@distilled.cloud/aws/apprunner";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Service } from "./Service.ts";
5
6 /**
7 * Start a manual deployment of an App Runner {@link Service} from a Lambda
8 * (or other AWS runtime) — App Runner re-pulls the latest image (or commit)
9 * and rolls a new container fleet. The call is asynchronous; pair with
10 * {@link ListOperations} to track the returned `OperationId` to completion.
11 *
12 * Provide `AppRunner.StartDeploymentHttp` on the hosting function's Effect
13 * to implement the binding.
14 *
15 * ### Deploying at Runtime
16 * **Example:** Trigger a deployment and return its operation id
17 * ```typescript
18 * const startDeployment = yield* AppRunner.StartDeployment(service);
19 * const { OperationId } = yield* startDeployment();
20 * ```
21 *
22 * @binding
23 */
24 export interface StartDeployment extends Binding.Service<
25 StartDeployment,
26 "AWS.AppRunner.StartDeployment",
27 (
28 service: Service,
29 ) => Effect.Effect<
30 () => Effect.Effect<apprunner.StartDeploymentResponse, apprunner.StartDeploymentError>
31 >
32 > {}
33 export const StartDeployment = Binding.Service<StartDeployment>("AWS.AppRunner.StartDeployment");