public void GlacierDeleteVaultAccessPolicy()
        {
            #region to-delete-the-vault-access-policy-1481840424677

            var response = client.DeleteVaultAccessPolicy(new DeleteVaultAccessPolicyRequest
            {
                AccountId = "-",
                VaultName = "examplevault"
            });


            #endregion
        }
Beispiel #2
0
 private Amazon.Glacier.Model.DeleteVaultAccessPolicyResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.DeleteVaultAccessPolicyRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "DeleteVaultAccessPolicy");
     try
     {
         #if DESKTOP
         return(client.DeleteVaultAccessPolicy(request));
         #elif CORECLR
         return(client.DeleteVaultAccessPolicyAsync(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;
     }
 }