RestoreTableFromSnapshot
Source:
src/AWS/RedshiftServerless/RestoreTableFromSnapshot.ts
Runtime binding for the RestoreTableFromSnapshot operation (IAM actions
redshift-serverless:RestoreTableFromSnapshot).
Restores a single table from a snapshot into the bound
Namespace under a new name — undo for a bad table mutation
without rolling back the whole namespace. Provide the implementation with
Effect.provide(AWS.RedshiftServerless.RestoreTableFromSnapshotHttp).
Restoring Data
Section titled “Restoring Data”// init — resolve the runtime clientconst restoreTable = yield* AWS.RedshiftServerless.RestoreTableFromSnapshot(namespace);
yield* restoreTable({ workgroupName, snapshotName: "pre-migration-1", sourceDatabaseName: "dev", sourceTableName: "orders", newTableName: "orders_restored",});