Ejemplo n.º 1
0
 internal PrometheusServicePaginatorFactory(IAmazonPrometheusService client)
 {
     this.client = client;
 }
Ejemplo n.º 2
0
 private Amazon.PrometheusService.Model.ListTagsForResourceResponse CallAWSServiceOperation(IAmazonPrometheusService client, Amazon.PrometheusService.Model.ListTagsForResourceRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Prometheus Service", "ListTagsForResource");
     try
     {
         #if DESKTOP
         return(client.ListTagsForResource(request));
         #elif CORECLR
         return(client.ListTagsForResourceAsync(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;
     }
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }
Ejemplo n.º 4
0
 internal ListRuleGroupsNamespacesPaginator(IAmazonPrometheusService client, ListRuleGroupsNamespacesRequest request)
 {
     this._client  = client;
     this._request = request;
 }