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

main
ts 29 lines 966 Bytes
Raw
1 import type * as SVC from "@distilled.cloud/aws/emr";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Cluster } from "./Cluster.ts";
5
6 /**
7 * Runtime binding for `elasticmapreduce:TerminateSession` — terminates an interactive session on the bound cluster.
8 * ### Interactive Sessions
9 * **Example:** Terminate a Session
10 * ```typescript
11 * const terminateSession = yield* AWS.EMR.TerminateSession(cluster);
12 *
13 * yield* terminateSession({ SessionId: sessionId });
14 * ```
15 *
16 * @binding
17 */
18 export interface TerminateSession extends Binding.Service<
19 TerminateSession,
20 "AWS.EMR.TerminateSession",
21 <C extends Cluster>(
22 cluster: C,
23 ) => Effect.Effect<
24 (
25 request: Omit<SVC.TerminateSessionInput, "ClusterId">,
26 ) => Effect.Effect<SVC.TerminateSessionOutput, SVC.TerminateSessionError>
27 >
28 > {}
29 export const TerminateSession = Binding.Service<TerminateSession>("AWS.EMR.TerminateSession");