Skip to content

RestoreTableFromBackup

Source: src/AWS/DynamoDB/RestoreTableFromBackup.ts

Runtime binding for dynamodb:RestoreTableFromBackup.

Bind this operation to a source and a target Table inside a function runtime to get a callable that restores one of the source table’s on-demand backups (by BackupArn) into the target, automatically injecting the target table name. Provide the RestoreTableFromBackupHttp layer on the Function to satisfy the binding.

const restoreTableFromBackup = yield* AWS.DynamoDB.RestoreTableFromBackup(
sourceTable,
restoreTargetTable,
);
const response = yield* restoreTableFromBackup({ BackupArn: backupArn });
const status = response.TableDescription?.TableStatus;