예제 #1
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
예제 #2
0
 internal ListReportDefinitionsPaginator(IAmazonApplicationCostProfiler client, ListReportDefinitionsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 private Amazon.ApplicationCostProfiler.Model.ListReportDefinitionsResponse CallAWSServiceOperation(IAmazonApplicationCostProfiler client, Amazon.ApplicationCostProfiler.Model.ListReportDefinitionsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon ApplicationCostProfiler", "ListReportDefinitions");
     try
     {
         #if DESKTOP
         return(client.ListReportDefinitions(request));
         #elif CORECLR
         return(client.ListReportDefinitionsAsync(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;
     }
 }
예제 #4
0
 internal ApplicationCostProfilerPaginatorFactory(IAmazonApplicationCostProfiler client)
 {
     this.client = client;
 }