@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, 06:00 UTC

main
ts 32 lines 1.12 KB
Raw
1 import type * as amp from "@distilled.cloud/aws/amp";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { Workspace } from "./Workspace.ts";
5
6 /**
7 * Runtime binding for `aps:DescribeWorkspace`.
8 *
9 * Bind this operation to a {@link Workspace} inside a function runtime to get
10 * a callable that reads the workspace's control-plane metadata (status,
11 * alias, endpoint). Provide the `DescribeWorkspaceHttp` layer on the Function
12 * to satisfy the binding.
13 *
14 * ### Workspace Metadata
15 * **Example:** Describe the Bound Workspace
16 * ```typescript
17 * const describeWorkspace = yield* AMP.DescribeWorkspace(workspace);
18 *
19 * const response = yield* describeWorkspace();
20 * const status = response.workspace.status.statusCode;
21 * ```
22 *
23 * @binding
24 */
25 export interface DescribeWorkspace extends Binding.Service<
26 DescribeWorkspace,
27 "AWS.AMP.DescribeWorkspace",
28 (
29 workspace: Workspace,
30 ) => Effect.Effect<() => Effect.Effect<amp.DescribeWorkspaceResponse, amp.DescribeWorkspaceError>>
31 > {}
32 export const DescribeWorkspace = Binding.Service<DescribeWorkspace>("AWS.AMP.DescribeWorkspace");