| 1 | import type * as rds from "@distilled.cloud/aws/rds"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | import type { DBInstance } from "./DBInstance.ts"; |
| 5 | |
| 6 | /** |
| 7 | * Runtime binding for the `RebootDBInstance` operation (IAM action |
| 8 | * `rds:RebootDBInstance`). |
| 9 | * |
| 10 | * Reboots the bound {@link DBInstance} (optionally with a forced |
| 11 | * failover for Multi-AZ deployments) — e.g. to apply static parameter |
| 12 | * changes. The instance identifier is injected from the binding. Provide the implementation with |
| 13 | * `Effect.provide(AWS.RDS.RebootDBInstanceHttp)`. |
| 14 | * ### Operating an Instance |
| 15 | * **Example:** Reboot an Instance |
| 16 | * ```typescript |
| 17 | * // init — bind the operation to the instance |
| 18 | * const rebootDBInstance = yield* AWS.RDS.RebootDBInstance(instance); |
| 19 | * |
| 20 | * // runtime |
| 21 | * yield* rebootDBInstance(); |
| 22 | * ``` |
| 23 | * |
| 24 | * @binding |
| 25 | */ |
| 26 | export interface RebootDBInstance extends Binding.Service< |
| 27 | RebootDBInstance, |
| 28 | "AWS.RDS.RebootDBInstance", |
| 29 | ( |
| 30 | instance: DBInstance, |
| 31 | ) => Effect.Effect< |
| 32 | ( |
| 33 | request?: Omit<rds.RebootDBInstanceMessage, "DBInstanceIdentifier">, |
| 34 | ) => Effect.Effect<rds.RebootDBInstanceResult, rds.RebootDBInstanceError> |
| 35 | > |
| 36 | > {} |
| 37 | export const RebootDBInstance = Binding.Service<RebootDBInstance>( |
| 38 | "AWS.RDS.RebootDBInstance", |
| 39 | ); |