Пример #1
0
        public void RestoreBackup()
        {
            RestoreTableFromBackupRequest request = new RestoreTableFromBackupRequest {
                BackupArn = BackupArn, TargetTableName = BackupTableName
            };
            var response = client.RestoreTableFromBackup(request);

            if (response.HttpStatusCode.IsSuccess())
            {
                Console.WriteLine("Backup restored successfully");
                Console.WriteLine($"Backup Table Arn: {response.TableDescription.TableArn}");
                Console.WriteLine($"Backup Table Status: {response.TableDescription.TableStatus}");
            }
        }
Пример #2
0
        public void RestoreBackup()
        {
            RestoreTableFromBackupRequest request = new RestoreTableFromBackupRequest
            {
                BackupArn       = backupTableARN,
                TargetTableName = tableBackupName
            };

            var response = client.RestoreTableFromBackup(request);

            if (response.HttpStatusCode == System.Net.HttpStatusCode.OK)
            {
                Console.WriteLine("Restore Successfully");
                Console.WriteLine($"Table ARN =>{response.TableDescription.TableArn}");
                Console.WriteLine($"Table Status=> {response.TableDescription.TableStatus}");
            }
            Console.ReadLine();
        }