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

main
ts 34 lines 1.13 KB
Raw
1 import type * as emr from "@distilled.cloud/aws/emr-serverless";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Application } from "./Application.ts";
5
6 /**
7 * Runtime binding for `emr-serverless:StartApplication`.
8 *
9 * Starts the bound {@link Application} — pre-warming its pre-initialized
10 * capacity ahead of a burst of job submissions so the first job skips the
11 * application cold start. Provide the implementation with
12 * `Effect.provide(AWS.EMRServerless.StartApplicationHttp)`.
13 * ### Application Control
14 * **Example:** Warm Up Before A Batch Window
15 * ```typescript
16 * // init
17 * const startApplication = yield* AWS.EMRServerless.StartApplication(app);
18 *
19 * // runtime
20 * yield* startApplication();
21 * ```
22 *
23 * @binding
24 */
25 export interface StartApplication extends Binding.Service<
26 StartApplication,
27 "AWS.EMRServerless.StartApplication",
28 (
29 application: Application,
30 ) => Effect.Effect<() => Effect.Effect<emr.StartApplicationResponse, emr.StartApplicationError>>
31 > {}
32 export const StartApplication = Binding.Service<StartApplication>(
33 "AWS.EMRServerless.StartApplication",
34 );