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

main
ts 44 lines 1.42 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 * Request accepted by the {@link TerminateSession} runtime callable. The
8 * `applicationId` is injected from the bound {@link Application}.
9 */
10 export type TerminateSessionInput = Omit<emr.TerminateSessionRequest, "applicationId">;
11
12 /**
13 * Runtime binding for `emr-serverless:TerminateSession`.
14 *
15 * Terminates an interactive session on the bound {@link Application},
16 * releasing its workers — e.g. a cost-control function reaping sessions
17 * left idle past a policy window. Provide the implementation with
18 * `Effect.provide(AWS.EMRServerless.TerminateSessionHttp)`.
19 * ### Interactive Sessions
20 * **Example:** Terminate A Session
21 * ```typescript
22 * // init
23 * const terminateSession = yield* AWS.EMRServerless.TerminateSession(app);
24 *
25 * // runtime
26 * yield* terminateSession({ sessionId });
27 * ```
28 *
29 * @binding
30 */
31 export interface TerminateSession extends Binding.Service<
32 TerminateSession,
33 "AWS.EMRServerless.TerminateSession",
34 (
35 application: Application,
36 ) => Effect.Effect<
37 (
38 request: TerminateSessionInput,
39 ) => Effect.Effect<emr.TerminateSessionResponse, emr.TerminateSessionError>
40 >
41 > {}
42 export const TerminateSession = Binding.Service<TerminateSession>(
43 "AWS.EMRServerless.TerminateSession",
44 );