| 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 `DescribeDBClusterSnapshots` operation (IAM action |
| 7 | * `rds:DescribeDBClusterSnapshots`). |
| 8 | * |
| 9 | * Lists the account's Neptune cluster snapshots (manual and automated) — |
| 10 | * for backup verification and restore tooling. Provide the implementation |
| 11 | * with `Effect.provide(AWS.Neptune.DescribeDBClusterSnapshotsHttp)`. |
| 12 | * ### Managing Snapshots |
| 13 | * **Example:** List a Cluster's Snapshots |
| 14 | * ```typescript |
| 15 | * const describeDBClusterSnapshots = |
| 16 | * yield* AWS.Neptune.DescribeDBClusterSnapshots(); |
| 17 | * |
| 18 | * const page = yield* describeDBClusterSnapshots({ |
| 19 | * DBClusterIdentifier: clusterId, |
| 20 | * }); |
| 21 | * const count = page.DBClusterSnapshots?.length; |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface DescribeDBClusterSnapshots extends Binding.Service< |
| 27 | DescribeDBClusterSnapshots, |
| 28 | "AWS.Neptune.DescribeDBClusterSnapshots", |
| 29 | () => Effect.Effect< |
| 30 | ( |
| 31 | request?: neptune.DescribeDBClusterSnapshotsMessage, |
| 32 | ) => Effect.Effect< |
| 33 | neptune.DBClusterSnapshotMessage, |
| 34 | neptune.DescribeDBClusterSnapshotsError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const DescribeDBClusterSnapshots = |
| 39 | Binding.Service<DescribeDBClusterSnapshots>( |
| 40 | "AWS.Neptune.DescribeDBClusterSnapshots", |
| 41 | ); |