| 1 | import type * as redshift from "@distilled.cloud/aws/redshift"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { Cluster } from "./Cluster.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for the `RebootCluster` operation (IAM action |
| 8 | * `redshift:RebootCluster`). |
| 9 | * |
| 10 | * Reboots the bound {@link Cluster} (a momentary outage while it restarts) — |
| 11 | * e.g. an ops function that applies pending static parameter-group changes. |
| 12 | * The cluster identifier is injected from the binding. Provide the |
| 13 | * implementation with `Effect.provide(AWS.Redshift.RebootClusterHttp)`. |
| 14 | * ### Operating a Cluster |
| 15 | * **Example:** Reboot to Apply Static Parameters |
| 16 | * ```typescript |
| 17 | * // init — bind the operation to the cluster |
| 18 | * const rebootCluster = yield* AWS.Redshift.RebootCluster(cluster); |
| 19 | * |
| 20 | * // runtime |
| 21 | * yield* rebootCluster(); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface RebootCluster extends Binding.Service< |
| 27 | RebootCluster, |
| 28 | "AWS.Redshift.RebootCluster", |
| 29 | ( |
| 30 | cluster: Cluster, |
| 31 | ) => Effect.Effect< |
| 32 | () => Effect.Effect< |
| 33 | redshift.RebootClusterResult, |
| 34 | redshift.RebootClusterError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const RebootCluster = Binding.Service<RebootCluster>( |
| 39 | "AWS.Redshift.RebootCluster", |
| 40 | ); |