private Amazon.CostAndUsageReport.Model.DescribeReportDefinitionsResponse CallAWSServiceOperation(IAmazonCostAndUsageReport client, Amazon.CostAndUsageReport.Model.DescribeReportDefinitionsRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Cost and Usage Report", "DescribeReportDefinitions"); try { #if DESKTOP return(client.DescribeReportDefinitions(request)); #elif CORECLR return(client.DescribeReportDefinitionsAsync(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; } }
internal DescribeReportDefinitionsPaginator(IAmazonCostAndUsageReport client, DescribeReportDefinitionsRequest request) { this._client = client; this._request = request; }
internal CostAndUsageReportPaginatorFactory(IAmazonCostAndUsageReport client) { this.client = client; }
protected override void ProcessRecord() { base.ProcessRecord(); Client = CreateClient(_CurrentCredentials, _RegionEndpoint); }