@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 38 lines 1.33 KB
Raw
1 import type * as emrc from "@distilled.cloud/aws/emr-containers";
2 import * as Binding from "alchemy/Binding";
3 import type * as Effect from "effect/Effect";
4
5 /**
6 * Runtime binding for `emr-containers:ListVirtualClusters`.
7 *
8 * Enumerates the account's EMR on EKS virtual clusters, optionally filtered
9 * by state, container provider, or creation time. Account-level — no
10 * resource argument. Provide the implementation with
11 * `Effect.provide(AWS.EMRContainers.ListVirtualClustersHttp)`.
12 * ### Virtual Clusters
13 * **Example:** List Running Virtual Clusters
14 * ```typescript
15 * // init — account-level binding, no resource argument
16 * const listVirtualClusters = yield* AWS.EMRContainers.ListVirtualClusters();
17 *
18 * // runtime
19 * const { virtualClusters } = yield* listVirtualClusters({
20 * states: ["RUNNING"],
21 * });
22 * yield* Effect.log(`${virtualClusters?.length ?? 0} running virtual clusters`);
23 * ```
24 *
25 * @binding
26 */
27 export interface ListVirtualClusters extends Binding.Service<
28 ListVirtualClusters,
29 "AWS.EMRContainers.ListVirtualClusters",
30 () => Effect.Effect<
31 (
32 request?: emrc.ListVirtualClustersRequest,
33 ) => Effect.Effect<emrc.ListVirtualClustersResponse, emrc.ListVirtualClustersError>
34 >
35 > {}
36 export const ListVirtualClusters = Binding.Service<ListVirtualClusters>(
37 "AWS.EMRContainers.ListVirtualClusters",
38 );