| 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 `DeleteSnapshot` operation (IAM actions |
| 7 | * `redshift-serverless:DeleteSnapshot`). |
| 8 | * |
| 9 | * Deletes a manual snapshot — the cleanup half of a snapshot-rotation |
| 10 | * job. Provide the implementation with |
| 11 | * `Effect.provide(AWS.RedshiftServerless.DeleteSnapshotHttp)`. |
| 12 | * ### Managing Snapshots |
| 13 | * **Example:** Delete an Expired Snapshot |
| 14 | * ```typescript |
| 15 | * // init — resolve the runtime client |
| 16 | * const deleteSnapshot = yield* AWS.RedshiftServerless.DeleteSnapshot(); |
| 17 | * |
| 18 | * yield* deleteSnapshot({ snapshotName: "pre-migration-1" }); |
| 19 | * ``` |
| 20 | * |
| 21 | * @binding |
| 22 | */ |
| 23 | export interface DeleteSnapshot extends Binding.Service< |
| 24 | DeleteSnapshot, |
| 25 | "AWS.RedshiftServerless.DeleteSnapshot", |
| 26 | () => Effect.Effect< |
| 27 | ( |
| 28 | request: serverless.DeleteSnapshotRequest, |
| 29 | ) => Effect.Effect< |
| 30 | serverless.DeleteSnapshotResponse, |
| 31 | serverless.DeleteSnapshotError |
| 32 | > |
| 33 | > |
| 34 | > {} |
| 35 | export const DeleteSnapshot = Binding.Service<DeleteSnapshot>( |
| 36 | "AWS.RedshiftServerless.DeleteSnapshot", |
| 37 | ); |