| 1 | import type * as neptune from "@distilled.cloud/aws/neptune"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { DBCluster } from "./DBCluster.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for the `StartDBCluster` operation (IAM action |
| 8 | * `rds:StartDBCluster`). |
| 9 | * |
| 10 | * Starts the bound {@link DBCluster} after it was stopped — e.g. an ops |
| 11 | * function that wakes a development cluster on a schedule. The cluster |
| 12 | * identifier is injected from the binding. Provide the implementation with |
| 13 | * `Effect.provide(AWS.Neptune.StartDBClusterHttp)`. |
| 14 | * ### Operating a Cluster |
| 15 | * **Example:** Start a Stopped Cluster |
| 16 | * ```typescript |
| 17 | * // init — bind the operation to the cluster |
| 18 | * const startDBCluster = yield* AWS.Neptune.StartDBCluster(cluster); |
| 19 | * |
| 20 | * // runtime |
| 21 | * yield* startDBCluster(); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface StartDBCluster extends Binding.Service< |
| 27 | StartDBCluster, |
| 28 | "AWS.Neptune.StartDBCluster", |
| 29 | ( |
| 30 | cluster: DBCluster, |
| 31 | ) => Effect.Effect< |
| 32 | () => Effect.Effect< |
| 33 | neptune.StartDBClusterResult, |
| 34 | neptune.StartDBClusterError |
| 35 | > |
| 36 | > |
| 37 | > {} |
| 38 | export const StartDBCluster = Binding.Service<StartDBCluster>( |
| 39 | "AWS.Neptune.StartDBCluster", |
| 40 | ); |