public void GlacierGetDataRetrievalPolicy() { #region to-get-the-current-data-retrieval-policy-for-the-account-1481851580439 var response = client.GetDataRetrievalPolicy(new GetDataRetrievalPolicyRequest { AccountId = "-" }); DataRetrievalPolicy policy = response.Policy; #endregion }
private Amazon.Glacier.Model.GetDataRetrievalPolicyResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.GetDataRetrievalPolicyRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "GetDataRetrievalPolicy"); try { #if DESKTOP return(client.GetDataRetrievalPolicy(request)); #elif CORECLR return(client.GetDataRetrievalPolicyAsync(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; } }