Skip to content

Open-source Grok Bot alternative for named AI teammates. Local-first desktop, web, and mobile clients with per-bot tools, instructions, and memory. Independent fork of T3 Code.

1.2 KB
Raw Blame
import type * as dax from "@distilled.cloud/aws/dax";
import type * as Effect from "effect/Effect";
import * as Binding from "../../Binding.ts";

/**
 * Runtime binding for the `DescribeClusters` operation (IAM action
 * `dax:DescribeClusters`).
 *
 * Lists the account's DAX clusters (optionally filtered by name) with node
 * status, endpoints and configuration embedded — the building block of
 * cluster-health monitoring and node-reboot automation. Provide the
 * implementation with `Effect.provide(AWS.DAX.DescribeClustersHttp)`.
 * @binding
 * @section Monitoring Clusters
 * @example Check a Cluster's Node Health
 * ```typescript
 * const describeClusters = yield* DAX.DescribeClusters();
 *
 * const page = yield* describeClusters({ ClusterNames: [clusterName] });
 * const available = page.Clusters?.[0]?.Nodes?.filter(
 *   (node) => node.NodeStatus === "available",
 * );
 * ```
 */
export interface DescribeClusters extends Binding.Service<
  DescribeClusters,
  "AWS.DAX.DescribeClusters",
  () => Effect.Effect<
    (
      request?: dax.DescribeClustersRequest,
    ) => Effect.Effect<dax.DescribeClustersResponse, dax.DescribeClustersError>
  >
> {}
export const DescribeClusters = Binding.Service<DescribeClusters>(
  "AWS.DAX.DescribeClusters",
);