@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 31 lines 1.13 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:CreatePersistentAppUI` — creates a persistent application UI (Spark history, YARN timeline) for the bound cluster — the UI outlives the cluster. The cluster ARN is injected as `TargetResourceArn`.
8 * ### Application UIs
9 * **Example:** Create a Persistent Spark History UI
10 * ```typescript
11 * const createAppUI = yield* AWS.EMR.CreatePersistentAppUI(cluster);
12 *
13 * const { PersistentAppUIId } = yield* createAppUI();
14 * ```
15 *
16 * @binding
17 */
18 export interface CreatePersistentAppUI extends Binding.Service<
19 CreatePersistentAppUI,
20 "AWS.EMR.CreatePersistentAppUI",
21 <C extends Cluster>(
22 cluster: C,
23 ) => Effect.Effect<
24 (
25 request?: Omit<SVC.CreatePersistentAppUIInput, "TargetResourceArn">,
26 ) => Effect.Effect<SVC.CreatePersistentAppUIOutput, SVC.CreatePersistentAppUIError>
27 >
28 > {}
29 export const CreatePersistentAppUI = Binding.Service<CreatePersistentAppUI>(
30 "AWS.EMR.CreatePersistentAppUI",
31 );