Example #1
0
 private Amazon.ServiceQuotas.Model.GetServiceQuotaIncreaseRequestFromTemplateResponse CallAWSServiceOperation(IAmazonServiceQuotas client, Amazon.ServiceQuotas.Model.GetServiceQuotaIncreaseRequestFromTemplateRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "AWS Service Quotas", "GetServiceQuotaIncreaseRequestFromTemplate");
     try
     {
         #if DESKTOP
         return(client.GetServiceQuotaIncreaseRequestFromTemplate(request));
         #elif CORECLR
         return(client.GetServiceQuotaIncreaseRequestFromTemplateAsync(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;
     }
 }
Example #2
0
 internal ListServiceQuotasPaginator(IAmazonServiceQuotas client, ListServiceQuotasRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ServiceQuotasPaginatorFactory(IAmazonServiceQuotas client)
 {
     this.client = client;
 }
 internal ListServiceQuotaIncreaseRequestsInTemplatePaginator(IAmazonServiceQuotas client, ListServiceQuotaIncreaseRequestsInTemplateRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ListRequestedServiceQuotaChangeHistoryByQuotaPaginator(IAmazonServiceQuotas client, ListRequestedServiceQuotaChangeHistoryByQuotaRequest request)
 {
     this._client  = client;
     this._request = request;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }