import type * as rds from "@distilled.cloud/aws/rds";
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.RDS.StartDBClusterHttp)`.
* ### Operating a Cluster
* **Example:** Start a Stopped Cluster
* ```typescript
* // init — bind the operation to the cluster
* const startDBCluster = yield* AWS.RDS.StartDBCluster(cluster);
*
* // runtime
* yield* startDBCluster();
* ```
*
* @binding
*/
export interface StartDBCluster extends Binding.Service<
StartDBCluster,
"AWS.RDS.StartDBCluster",
(
cluster: DBCluster,
) => Effect.Effect<() => Effect.Effect<rds.StartDBClusterResult, rds.StartDBClusterError>>
> {}
export const StartDBCluster = Binding.Service<StartDBCluster>("AWS.RDS.StartDBCluster");