public void GlacierGetVaultAccessPolicy() { #region to--get-the-access-policy-set-on-the-vault-1481936004590 var response = client.GetVaultAccessPolicy(new GetVaultAccessPolicyRequest { AccountId = "-", VaultName = "example-vault" }); VaultAccessPolicy policy = response.Policy; #endregion }
private Amazon.Glacier.Model.GetVaultAccessPolicyResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.GetVaultAccessPolicyRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "GetVaultAccessPolicy"); try { #if DESKTOP return(client.GetVaultAccessPolicy(request)); #elif CORECLR return(client.GetVaultAccessPolicyAsync(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; } }