public void BackupTable()
        {
            CreateBackupRequest request = new CreateBackupRequest {
                BackupName = "BKP002", TableName = TableName
            };
            var response = client.CreateBackup(request);

            if (response.HttpStatusCode.IsSuccess())
            {
                Console.WriteLine("Backup created successfully");
                Console.WriteLine($"Backup BackupArn:{response.BackupDetails.BackupArn}");
                Console.WriteLine($"Backup BackupCreationDateTime:{response.BackupDetails.BackupCreationDateTime}");
                Console.WriteLine($"Backup BackupStatus:{response.BackupDetails.BackupStatus}");
                Console.WriteLine($"Backup BackupSizeBytes:{response.BackupDetails.BackupSizeBytes}");
            }
        }
Example #2
0
        public void BackupTable()
        {
            CreateBackupRequest request = new CreateBackupRequest
            {
                TableName  = tableName,
                BackupName = tableBackupName
            };
            var response = client.CreateBackup(request);

            if (response.HttpStatusCode == System.Net.HttpStatusCode.OK)
            {
                Console.WriteLine("Backup Created Successfully");
                Console.WriteLine($"Backup ARN =>{response.BackupDetails.BackupArn}");
                Console.WriteLine($"Backup CreateDate =>{response.BackupDetails.BackupCreationDateTime}");
                Console.WriteLine($"Backup Status =>{response.BackupDetails.BackupStatus}");
                Console.WriteLine($"Backup Size Type =>{response.BackupDetails.BackupSizeBytes}");
            }
            Console.ReadLine();
        }