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
| 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:GetSessionEndpoint` — resolves the Spark Connect endpoint URL and a time-limited auth token for an interactive session on the bound cluster. The returned `AuthToken` is `Redacted` — unwrap with `Redacted.value`. |
| 8 | * ### Interactive Sessions |
| 9 | * **Example:** Connect a Spark Client |
| 10 | * ```typescript |
| 11 | * const getEndpoint = yield* AWS.EMR.GetSessionEndpoint(cluster); |
| 12 | * |
| 13 | * const { Endpoint, AuthToken } = yield* getEndpoint({ |
| 14 | * SessionId: sessionId, |
| 15 | * }); |
| 16 | * ``` |
| 17 | * |
| 18 | * @binding |
| 19 | */ |
| 20 | export interface GetSessionEndpoint extends Binding.Service< |
| 21 | GetSessionEndpoint, |
| 22 | "AWS.EMR.GetSessionEndpoint", |
| 23 | <C extends Cluster>( |
| 24 | cluster: C, |
| 25 | ) => Effect.Effect< |
| 26 | ( |
| 27 | request: Omit<SVC.GetSessionEndpointInput, "ClusterId">, |
| 28 | ) => Effect.Effect<SVC.GetSessionEndpointOutput, SVC.GetSessionEndpointError> |
| 29 | > |
| 30 | > {} |
| 31 | export const GetSessionEndpoint = Binding.Service<GetSessionEndpoint>("AWS.EMR.GetSessionEndpoint"); |