1import type * as rds from "@distilled.cloud/aws/rds";
2import type * as Effect from "effect/Effect";
3import * as Binding from "../../Binding.ts";
4import type { DBCluster } from "./DBCluster.ts";
5
6/**
7 * Runtime binding for the `StopDBCluster` operation (IAM action
8 * `rds:StopDBCluster`).
9 *
10 * Stops the bound {@link DBCluster} — e.g. an ops function that parks a
11 * development cluster overnight to save cost. The cluster identifier is
12 * injected from the binding. Provide the implementation with
13 * `Effect.provide(AWS.RDS.StopDBClusterHttp)`.
14 * ### Operating a Cluster
15 * **Example:** Stop a Running Cluster
16 * ```typescript
17 * // init — bind the operation to the cluster
18 * const stopDBCluster = yield* AWS.RDS.StopDBCluster(cluster);
19 *
20 * // runtime
21 * yield* stopDBCluster();
22 * ```
23 *
24 * @binding
25 */
26export interface StopDBCluster extends Binding.Service<
27 StopDBCluster,
28 "AWS.RDS.StopDBCluster",
29 (
30 cluster: DBCluster,
31 ) => Effect.Effect<
32 () => Effect.Effect<rds.StopDBClusterResult, rds.StopDBClusterError>
33 >
34> {}
35export const StopDBCluster = Binding.Service<StopDBCluster>(
36 "AWS.RDS.StopDBCluster",
37);