The best way to control Claude Code, Codex and more from any computer or phone
Mirrored from https://github.com/Camo67/t3code.git
Synced Nov 21, 04:45 UTC
| 1 | import type * as redshift from "@distilled.cloud/aws/redshift"; |
| 2 | import * as Binding from "alchemy/Binding"; |
| 3 | import type * as Effect from "effect/Effect"; |
| 4 | import type { Cluster } from "./Cluster.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for the `ResumeCluster` operation (IAM action |
| 8 | * `redshift:ResumeCluster`). |
| 9 | * |
| 10 | * Resumes the bound paused {@link Cluster} — the morning half of an |
| 11 | * overnight pause schedule. The cluster identifier is injected from the |
| 12 | * binding. Provide the implementation with |
| 13 | * `Effect.provide(AWS.Redshift.ResumeClusterHttp)`. |
| 14 | * ### Operating a Cluster |
| 15 | * **Example:** Resume the Warehouse in the Morning |
| 16 | * ```typescript |
| 17 | * // init — bind the operation to the cluster |
| 18 | * const resumeCluster = yield* AWS.Redshift.ResumeCluster(cluster); |
| 19 | * |
| 20 | * // runtime |
| 21 | * yield* resumeCluster(); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface ResumeCluster extends Binding.Service< |
| 27 | ResumeCluster, |
| 28 | "AWS.Redshift.ResumeCluster", |
| 29 | ( |
| 30 | cluster: Cluster, |
| 31 | ) => Effect.Effect<() => Effect.Effect<redshift.ResumeClusterResult, redshift.ResumeClusterError>> |
| 32 | > {} |
| 33 | export const ResumeCluster = Binding.Service<ResumeCluster>("AWS.Redshift.ResumeCluster"); |