public void ElasticLoadBalancingV2DescribeRules()
        {
            #region elbv2-describe-rules-1

            var response = client.DescribeRules(new DescribeRulesRequest
            {
                RuleArns = new List <string> {
                    "arn:aws:elasticloadbalancing:us-west-2:123456789012:listener-rule/app/my-load-balancer/50dc6c495c0c9188/f2f7dc8efc522ab2/9683b2d02a6cabee"
                }
            });

            List <Rule> rules = response.Rules;

            #endregion
        }
 private Amazon.ElasticLoadBalancingV2.Model.DescribeRulesResponse CallAWSServiceOperation(IAmazonElasticLoadBalancingV2 client, Amazon.ElasticLoadBalancingV2.Model.DescribeRulesRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing V2", "DescribeRules");
     try
     {
         #if DESKTOP
         return(client.DescribeRules(request));
         #elif CORECLR
         return(client.DescribeRulesAsync(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;
     }
 }