| 1 | import type * as neptune from "@distilled.cloud/aws/neptune"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for the `DescribeDBClusters` operation (IAM action |
| 7 | * `rds:DescribeDBClusters`). |
| 8 | * |
| 9 | * Lists the account's Neptune clusters (or one cluster by identifier) — |
| 10 | * status, endpoints, members, engine versions — for health checks and |
| 11 | * cluster discovery. Provide the implementation with |
| 12 | * `Effect.provide(AWS.Neptune.DescribeDBClustersHttp)`. |
| 13 | * ### Monitoring Clusters |
| 14 | * **Example:** Check a Cluster's Status |
| 15 | * ```typescript |
| 16 | * const describeDBClusters = yield* AWS.Neptune.DescribeDBClusters(); |
| 17 | * |
| 18 | * const page = yield* describeDBClusters({ |
| 19 | * DBClusterIdentifier: clusterId, |
| 20 | * }); |
| 21 | * const status = page.DBClusters?.[0]?.Status; |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface DescribeDBClusters extends Binding.Service< |
| 27 | DescribeDBClusters, |
| 28 | "AWS.Neptune.DescribeDBClusters", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request?: neptune.DescribeDBClustersMessage, |
| 32 | ) => Effect.Effect< |
| 33 | neptune.DBClusterMessage, |
| 34 | neptune.DescribeDBClustersError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const DescribeDBClusters = Binding.Service<DescribeDBClusters>( |
| 39 | "AWS.Neptune.DescribeDBClusters", |
| 40 | ); |