The best way to control Claude Code, Codex and more from any computer or phone

main
ts 39 lines 1.33 KB
Raw
1 import type * as bcm from "@distilled.cloud/aws/bcm-data-exports";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link ListTables}.
7 */
8 export interface ListTablesRequest extends bcm.ListTablesRequest {}
9
10 /**
11 * Runtime binding for `bcm-data-exports:ListTables`.
12 *
13 * An account-level operation (the table dictionary is not tied to any
14 * export) that enumerates every table available to Data Exports queries,
15 * with each table's configurable properties. Useful for query builders that
16 * present the available data sources. Provide the implementation with
17 * `Effect.provide(AWS.BCMDataExports.ListTablesHttp)`.
18 * ### Browsing the Table Dictionary
19 * **Example:** List the Available Tables
20 * ```typescript
21 * // init — account-level binding takes no resource
22 * const listTables = yield* AWS.BCMDataExports.ListTables();
23 *
24 * // runtime
25 * const result = yield* listTables();
26 * const names = (result.Tables ?? []).map((table) => table.TableName);
27 * ```
28 *
29 * @binding
30 */
31 export interface ListTables extends Binding.Service<
32 ListTables,
33 "AWS.BCMDataExports.ListTables",
34 () => Effect.Effect<
35 (request?: ListTablesRequest) => Effect.Effect<bcm.ListTablesResponse, bcm.ListTablesError>
36 >
37 > {}
38
39 export const ListTables = Binding.Service<ListTables>("AWS.BCMDataExports.ListTables");