@devries-cameron20 / t3code Mirror · read-only
Fork 0

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

main
ts 36 lines 1.19 KB
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:GetOnClusterAppUIPresignedURL` — mints a presigned URL for a live application UI (Spark UI, YARN ResourceManager, Tez) on the bound cluster.
8 * ### Application UIs
9 * **Example:** Link to the Spark UI
10 * ```typescript
11 * const getAppUrl = yield* AWS.EMR.GetOnClusterAppUIPresignedURL(cluster);
12 *
13 * const { PresignedURL } = yield* getAppUrl({
14 * OnClusterAppUIType: "ApplicationMaster",
15 * });
16 * ```
17 *
18 * @binding
19 */
20 export interface GetOnClusterAppUIPresignedURL extends Binding.Service<
21 GetOnClusterAppUIPresignedURL,
22 "AWS.EMR.GetOnClusterAppUIPresignedURL",
23 <C extends Cluster>(
24 cluster: C,
25 ) => Effect.Effect<
26 (
27 request?: Omit<SVC.GetOnClusterAppUIPresignedURLInput, "ClusterId">,
28 ) => Effect.Effect<
29 SVC.GetOnClusterAppUIPresignedURLOutput,
30 SVC.GetOnClusterAppUIPresignedURLError
31 >
32 >
33 > {}
34 export const GetOnClusterAppUIPresignedURL = Binding.Service<GetOnClusterAppUIPresignedURL>(
35 "AWS.EMR.GetOnClusterAppUIPresignedURL",
36 );