1import type * as SVC from "@distilled.cloud/aws/finspace";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { KxEnvironment } from "./KxEnvironment.ts";
5
6/**
7 * Runtime binding for `finspace:ListKxClusters` — lists the kdb clusters of the bound environment, optionally filtered by cluster type.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.ListKxClustersHttp)`.
10 * ### Monitoring Clusters
11 * **Example:** List HDB Clusters
12 * ```typescript
13 * const listClusters = yield* AWS.FinSpace.ListKxClusters(kdb);
14 *
15 * const { kxClusterSummaries } = yield* listClusters({ clusterType: "HDB" });
16 * ```
17 *
18 * @binding
19 */
20export interface ListKxClusters extends Binding.Service<
21 ListKxClusters,
22 "AWS.FinSpace.ListKxClusters",
23 <K extends KxEnvironment>(
24 environment: K,
25 ) => Effect.Effect<
26 (
27 request?: Omit<SVC.ListKxClustersRequest, "environmentId">,
28 ) => Effect.Effect<SVC.ListKxClustersResponse, SVC.ListKxClustersError>
29 >
30> {}
31export const ListKxClusters = Binding.Service<ListKxClusters>(
32 "AWS.FinSpace.ListKxClusters",
33);