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, 06:00 UTC
| 1 | import type * as emr from "@distilled.cloud/aws/emr-serverless"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Application } from "./Application.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Request accepted by the {@link GetResourceDashboard} runtime callable. The |
| 8 | * `applicationId` is injected from the bound {@link Application}. |
| 9 | */ |
| 10 | export type GetResourceDashboardInput = Omit<emr.GetResourceDashboardRequest, "applicationId">; |
| 11 | |
| 12 | /** |
| 13 | * Runtime binding for `emr-serverless:GetResourceDashboard`. |
| 14 | * |
| 15 | * Creates a pre-signed dashboard URL for a specific resource (e.g. a |
| 16 | * worker) of the bound {@link Application}. Provide the implementation with |
| 17 | * `Effect.provide(AWS.EMRServerless.GetResourceDashboardHttp)`. |
| 18 | * ### Dashboards |
| 19 | * **Example:** Link To A Resource Dashboard |
| 20 | * ```typescript |
| 21 | * // init |
| 22 | * const getResourceDashboard = |
| 23 | * yield* AWS.EMRServerless.GetResourceDashboard(app); |
| 24 | * |
| 25 | * // runtime |
| 26 | * const { url } = yield* getResourceDashboard({ resourceId, resourceType }); |
| 27 | * ``` |
| 28 | * |
| 29 | * @binding |
| 30 | */ |
| 31 | export interface GetResourceDashboard extends Binding.Service< |
| 32 | GetResourceDashboard, |
| 33 | "AWS.EMRServerless.GetResourceDashboard", |
| 34 | ( |
| 35 | application: Application, |
| 36 | ) => Effect.Effect< |
| 37 | ( |
| 38 | request: GetResourceDashboardInput, |
| 39 | ) => Effect.Effect<emr.GetResourceDashboardResponse, emr.GetResourceDashboardError> |
| 40 | > |
| 41 | > {} |
| 42 | export const GetResourceDashboard = Binding.Service<GetResourceDashboard>( |
| 43 | "AWS.EMRServerless.GetResourceDashboard", |
| 44 | ); |