| 1 | import type * as serverless from "@distilled.cloud/aws/redshift-serverless"; |
| 2 | import type * as Effect from "effect/Effect"; |
| 3 | import * as Binding from "../../Binding.ts"; |
| 4 | |
| 5 | /** |
| 6 | * Runtime binding for the `GetRecoveryPoint` operation (IAM actions |
| 7 | * `redshift-serverless:GetRecoveryPoint`). |
| 8 | * |
| 9 | * Reads one automatic recovery point by id. Provide the implementation with |
| 10 | * `Effect.provide(AWS.RedshiftServerless.GetRecoveryPointHttp)`. |
| 11 | * ### Working with Recovery Points |
| 12 | * **Example:** Inspect a Recovery Point |
| 13 | * ```typescript |
| 14 | * // init — resolve the runtime client |
| 15 | * const getRecoveryPoint = yield* AWS.RedshiftServerless.GetRecoveryPoint(); |
| 16 | * |
| 17 | * const { recoveryPoint } = yield* getRecoveryPoint({ recoveryPointId }); |
| 18 | * ``` |
| 19 | * |
| 20 | * @binding |
| 21 | */ |
| 22 | export interface GetRecoveryPoint extends Binding.Service< |
| 23 | GetRecoveryPoint, |
| 24 | "AWS.RedshiftServerless.GetRecoveryPoint", |
| 25 | () => Effect.Effect< |
| 26 | ( |
| 27 | request: serverless.GetRecoveryPointRequest, |
| 28 | ) => Effect.Effect< |
| 29 | serverless.GetRecoveryPointResponse, |
| 30 | serverless.GetRecoveryPointError |
| 31 | > |
| 32 | > |
| 33 | > {} |
| 34 | export const GetRecoveryPoint = Binding.Service<GetRecoveryPoint>( |
| 35 | "AWS.RedshiftServerless.GetRecoveryPoint", |
| 36 | ); |