@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.04 KB
Raw
1 import type * as SVC from "@distilled.cloud/aws/finspace";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4 import type { KxEnvironment } from "./KxEnvironment.ts";
5
6 /**
7 * Runtime binding for `finspace:ListKxDatabases` — lists the kdb databases of the bound environment.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.ListKxDatabasesHttp)`.
10 * ### Reading Databases
11 * **Example:** List Databases
12 * ```typescript
13 * const listDatabases = yield* AWS.FinSpace.ListKxDatabases(kdb);
14 *
15 * const { kxDatabases } = yield* listDatabases();
16 * ```
17 *
18 * @binding
19 */
20 export interface ListKxDatabases extends Binding.Service<
21 ListKxDatabases,
22 "AWS.FinSpace.ListKxDatabases",
23 <K extends KxEnvironment>(
24 environment: K,
25 ) => Effect.Effect<
26 (
27 request?: Omit<SVC.ListKxDatabasesRequest, "environmentId">,
28 ) => Effect.Effect<SVC.ListKxDatabasesResponse, SVC.ListKxDatabasesError>
29 >
30 > {}
31 export const ListKxDatabases = Binding.Service<ListKxDatabases>("AWS.FinSpace.ListKxDatabases");