1import type * as memorydb from "@distilled.cloud/aws/memorydb";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4
5/**
6 * Runtime binding for the `DescribeClusters` operation (IAM action
7 * `memorydb:DescribeClusters`).
8 *
9 * Lists the account's MemoryDB clusters, or describes a single cluster by
10 * name — e.g. checking a cluster's status or endpoint from an operational
11 * Lambda. Provide the implementation with
12 * `Effect.provide(AWS.MemoryDB.DescribeClustersHttp)`.
13 * ### Monitoring Clusters
14 * **Example:** Check a Cluster's Status
15 * ```typescript
16 * const describeClusters = yield* MemoryDB.DescribeClusters();
17 *
18 * const page = yield* describeClusters({ ClusterName: clusterName });
19 * // page.Clusters[0].Status → "available"
20 * ```
21 *
22 * @binding
23 */
24export interface DescribeClusters extends Binding.Service<
25 DescribeClusters,
26 "AWS.MemoryDB.DescribeClusters",
27 () => Effect.Effect<
28 (
29 request?: memorydb.DescribeClustersRequest,
30 ) => Effect.Effect<
31 memorydb.DescribeClustersResponse,
32 memorydb.DescribeClustersError
33 >
34 >
35> {}
36export const DescribeClusters = Binding.Service<DescribeClusters>(
37 "AWS.MemoryDB.DescribeClusters",
38);