@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 37 lines 1.22 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:GetPersistentAppUIPresignedURL` — mints a presigned URL for a persistent application UI of the bound cluster (works after the cluster terminates).
8 * ### Application UIs
9 * **Example:** Link to the Spark History Server
10 * ```typescript
11 * const getAppUIUrl = yield* AWS.EMR.GetPersistentAppUIPresignedURL(cluster);
12 *
13 * const { PresignedURL } = yield* getAppUIUrl({
14 * PersistentAppUIId: appUIId,
15 * PersistentAppUIType: "SHS",
16 * });
17 * ```
18 *
19 * @binding
20 */
21 export interface GetPersistentAppUIPresignedURL extends Binding.Service<
22 GetPersistentAppUIPresignedURL,
23 "AWS.EMR.GetPersistentAppUIPresignedURL",
24 <C extends Cluster>(
25 cluster: C,
26 ) => Effect.Effect<
27 (
28 request: SVC.GetPersistentAppUIPresignedURLInput,
29 ) => Effect.Effect<
30 SVC.GetPersistentAppUIPresignedURLOutput,
31 SVC.GetPersistentAppUIPresignedURLError
32 >
33 >
34 > {}
35 export const GetPersistentAppUIPresignedURL = Binding.Service<GetPersistentAppUIPresignedURL>(
36 "AWS.EMR.GetPersistentAppUIPresignedURL",
37 );