import type * as docdb from "@distilled.cloud/aws/docdb";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { DBCluster } from "./DBCluster.ts";
/**
* Runtime binding for the `StartDBCluster` operation (IAM action
* `rds:StartDBCluster`).
*
* Starts the bound {@link DBCluster} after it was stopped — e.g. an ops
* function that wakes a development cluster on a schedule. The cluster
* identifier is injected from the binding. Provide the implementation with
* `Effect.provide(AWS.DocDB.StartDBClusterHttp)`.
* ### Operating a Cluster
* **Example:** Start a Stopped Cluster
* ```typescript
* // init — bind the operation to the cluster
* const startDBCluster = yield* AWS.DocDB.StartDBCluster(cluster);
*
* // runtime
* yield* startDBCluster();
* ```
*
* @binding
*/
export interface StartDBCluster extends Binding.Service<
StartDBCluster,
"AWS.DocDB.StartDBCluster",
(
cluster: DBCluster,
) => Effect.Effect<() => Effect.Effect<docdb.StartDBClusterResult, docdb.StartDBClusterError>>
> {}
export const StartDBCluster = Binding.Service<StartDBCluster>("AWS.DocDB.StartDBCluster");