sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ RDS/ DeleteDBClusterSnapshot.ts

import type * as rds from "@distilled.cloud/aws/rds";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";

/**
 * Runtime binding for the `DeleteDBClusterSnapshot` operation (IAM action
 * `rds:DeleteDBClusterSnapshot`).
 *
 * Deletes a manual Aurora cluster snapshot — the pruning half of a
 * snapshot-rotation function. Provide the implementation with
 * `Effect.provide(AWS.RDS.DeleteDBClusterSnapshotHttp)`.
 * ### Managing Cluster Snapshots
 * **Example:** Prune an Old Cluster Snapshot
 * ```typescript
 * const deleteDBClusterSnapshot = yield* AWS.RDS.DeleteDBClusterSnapshot();
 *
 * yield* deleteDBClusterSnapshot({
 *   DBClusterSnapshotIdentifier: oldSnapshotId,
 * });
 * ```
 *
 * @binding
 */
export interface DeleteDBClusterSnapshot extends Binding.Service<
  DeleteDBClusterSnapshot,
  "AWS.RDS.DeleteDBClusterSnapshot",
  () => Effect.Effect<
    (
      request: rds.DeleteDBClusterSnapshotMessage,
    ) => Effect.Effect<rds.DeleteDBClusterSnapshotResult, rds.DeleteDBClusterSnapshotError>
  >
> {}
export const DeleteDBClusterSnapshot = Binding.Service<DeleteDBClusterSnapshot>(
  "AWS.RDS.DeleteDBClusterSnapshot",
);