示例#1
0
        public void FSxDeleteBackup()
        {
            #region to-delete-a-file-system-1481847318399

            var response = client.DeleteBackup(new DeleteBackupRequest
            {
                BackupId = "backup-03e3c82e0183b7b6b"
            });

            string backupId  = response.BackupId;
            string lifecycle = response.Lifecycle;

            #endregion
        }
示例#2
0
 private Amazon.FSx.Model.DeleteBackupResponse CallAWSServiceOperation(IAmazonFSx client, Amazon.FSx.Model.DeleteBackupRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon FSx", "DeleteBackup");
     try
     {
         #if DESKTOP
         return(client.DeleteBackup(request));
         #elif CORECLR
         return(client.DeleteBackupAsync(request).GetAwaiter().GetResult());
         #else
                 #error "Unknown build edition"
         #endif
     }
     catch (AmazonServiceException exc)
     {
         var webException = exc.InnerException as System.Net.WebException;
         if (webException != null)
         {
             throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException);
         }
         throw;
     }
 }