public void GlacierDeleteVault()
        {
            #region 7f7f000b-4bdb-40d2-91e6-7c902f60f60f

            var response = client.DeleteVault(new DeleteVaultRequest
            {
                AccountId = "-",
                VaultName = "my-vault"
            });


            #endregion
        }
Ejemplo n.º 2
0
 private Amazon.Glacier.Model.DeleteVaultResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.DeleteVaultRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "DeleteVault");
     try
     {
         #if DESKTOP
         return(client.DeleteVault(request));
         #elif CORECLR
         return(client.DeleteVaultAsync(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;
     }
 }