Exemple #1
0
 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;
     }
 }
Exemple #2
0
 internal DescribeReportDefinitionsPaginator(IAmazonCostAndUsageReport client, DescribeReportDefinitionsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Exemple #3
0
 internal CostAndUsageReportPaginatorFactory(IAmazonCostAndUsageReport client)
 {
     this.client = client;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }