public void GlacierListProvisionedCapacity() { #region to-list-the-provisioned-capacity-units-for-an-account-1481923656130 var response = client.ListProvisionedCapacity(new ListProvisionedCapacityRequest { AccountId = "-" }); List <ProvisionedCapacityDescription> provisionedCapacityList = response.ProvisionedCapacityList; #endregion }
private Amazon.Glacier.Model.ListProvisionedCapacityResponse CallAWSServiceOperation(IAmazonGlacier client, Amazon.Glacier.Model.ListProvisionedCapacityRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Glacier", "ListProvisionedCapacity"); try { #if DESKTOP return(client.ListProvisionedCapacity(request)); #elif CORECLR return(client.ListProvisionedCapacityAsync(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; } }