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:GetKxCluster` — reads one kdb cluster of the bound environment — status, mounted databases, code configuration, and endpoints — for runtime monitoring and orchestration.
8 * Provide the implementation with
9 * `Effect.provide(AWS.FinSpace.GetKxClusterHttp)`.
10 * ### Monitoring Clusters
11 * **Example:** Check a Cluster's Status
12 * ```typescript
13 * const getCluster = yield* AWS.FinSpace.GetKxCluster(kdb);
14 *
15 * const { status } = yield* getCluster({ clusterName: "hdb" });
16 * ```
17 *
18 * @binding
19 */
20export interface GetKxCluster extends Binding.Service<
21 GetKxCluster,
22 "AWS.FinSpace.GetKxCluster",
23 <K extends KxEnvironment>(
24 environment: K,
25 ) => Effect.Effect<
26 (
27 request: Omit<SVC.GetKxClusterRequest, "environmentId">,
28 ) => Effect.Effect<SVC.GetKxClusterResponse, SVC.GetKxClusterError>
29 >
30> {}
31export const GetKxCluster = Binding.Service<GetKxCluster>(
32 "AWS.FinSpace.GetKxCluster",
33);