@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 43 lines 1.48 KB
Raw
1 import type * as codeconnections from "@distilled.cloud/aws/codeconnections";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Request for {@link ListConnections}.
7 */
8 export interface ListConnectionsRequest extends codeconnections.ListConnectionsInput {}
9
10 /**
11 * Runtime binding for `codeconnections:ListConnections`.
12 *
13 * An account-level operation (no connection argument) that enumerates the
14 * account's connections, optionally filtered by provider type or host.
15 * Useful for governance sweeps that audit which source providers are wired
16 * up. Provide the implementation with
17 * `Effect.provide(AWS.CodeConnections.ListConnectionsHttp)`.
18 * ### Inspecting a Connection
19 * **Example:** List Connections by Provider
20 * ```typescript
21 * // init — account-level binding takes no resource
22 * const listConnections = yield* AWS.CodeConnections.ListConnections();
23 *
24 * // runtime
25 * const result = yield* listConnections({ ProviderTypeFilter: "GitHub" });
26 * const names = (result.Connections ?? []).map((c) => c.ConnectionName);
27 * ```
28 *
29 * @binding
30 */
31 export interface ListConnections extends Binding.Service<
32 ListConnections,
33 "AWS.CodeConnections.ListConnections",
34 () => Effect.Effect<
35 (
36 request?: ListConnectionsRequest,
37 ) => Effect.Effect<codeconnections.ListConnectionsOutput, codeconnections.ListConnectionsError>
38 >
39 > {}
40
41 export const ListConnections = Binding.Service<ListConnections>(
42 "AWS.CodeConnections.ListConnections",
43 );