Skip to content

RestoreTableFromRecoveryPoint

Source: src/AWS/RedshiftServerless/RestoreTableFromRecoveryPoint.ts

Runtime binding for the RestoreTableFromRecoveryPoint operation (IAM actions redshift-serverless:RestoreTableFromRecoveryPoint).

Restores a single table from an automatic recovery point into the bound Namespace under a new name. Provide the implementation with Effect.provide(AWS.RedshiftServerless.RestoreTableFromRecoveryPointHttp).

// init — resolve the runtime client
const restoreTable = yield* AWS.RedshiftServerless.RestoreTableFromRecoveryPoint(namespace);
yield* restoreTable({
workgroupName,
recoveryPointId,
sourceDatabaseName: "dev",
sourceTableName: "orders",
newTableName: "orders_restored",
});