sailfork / t3code-github / .repos/ alchemy-effect/ packages/ aws/ src/ Redshift/ ResumeCluster.ts

import type * as redshift from "@distilled.cloud/aws/redshift";
import * as Binding from "alchemy/Binding";
import type * as Effect from "effect/Effect";
import type { Cluster } from "./Cluster.ts";

/**
 * Runtime binding for the `ResumeCluster` operation (IAM action
 * `redshift:ResumeCluster`).
 *
 * Resumes the bound paused {@link Cluster} — the morning half of an
 * overnight pause schedule. The cluster identifier is injected from the
 * binding. Provide the implementation with
 * `Effect.provide(AWS.Redshift.ResumeClusterHttp)`.
 * ### Operating a Cluster
 * **Example:** Resume the Warehouse in the Morning
 * ```typescript
 * // init — bind the operation to the cluster
 * const resumeCluster = yield* AWS.Redshift.ResumeCluster(cluster);
 *
 * // runtime
 * yield* resumeCluster();
 * ```
 *
 * @binding
 */
export interface ResumeCluster extends Binding.Service<
  ResumeCluster,
  "AWS.Redshift.ResumeCluster",
  (
    cluster: Cluster,
  ) => Effect.Effect<() => Effect.Effect<redshift.ResumeClusterResult, redshift.ResumeClusterError>>
> {}
export const ResumeCluster = Binding.Service<ResumeCluster>("AWS.Redshift.ResumeCluster");