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 `StartDBCluster` operation (IAM action
8 * `rds:StartDBCluster`).
9 *
10 * Starts the bound {@link DBCluster} after it was stopped — e.g. an ops
11 * function that wakes a development cluster on a schedule. The cluster
12 * identifier is injected from the binding. Provide the implementation with
13 * `Effect.provide(AWS.RDS.StartDBClusterHttp)`.
14 * ### Operating a Cluster
15 * **Example:** Start a Stopped Cluster
16 * ```typescript
17 * // init — bind the operation to the cluster
18 * const startDBCluster = yield* AWS.RDS.StartDBCluster(cluster);
19 *
20 * // runtime
21 * yield* startDBCluster();
22 * ```
23 *
24 * @binding
25 */
26export interface StartDBCluster extends Binding.Service<
27 StartDBCluster,
28 "AWS.RDS.StartDBCluster",
29 (
30 cluster: DBCluster,
31 ) => Effect.Effect<
32 () => Effect.Effect<rds.StartDBClusterResult, rds.StartDBClusterError>
33 >
34> {}
35export const StartDBCluster = Binding.Service<StartDBCluster>(
36 "AWS.RDS.StartDBCluster",
37);