public void ElasticLoadBalancingDescribeLoadBalancerAttributes()
        {
            #region elb-describe-load-balancer-attributes-1

            var response = client.DescribeLoadBalancerAttributes(new DescribeLoadBalancerAttributesRequest
            {
                LoadBalancerName = "my-load-balancer"
            });

            LoadBalancerAttributes loadBalancerAttributes = response.LoadBalancerAttributes;

            #endregion
        }
예제 #2
0
 private Amazon.ElasticLoadBalancing.Model.DescribeLoadBalancerAttributesResponse CallAWSServiceOperation(IAmazonElasticLoadBalancing client, Amazon.ElasticLoadBalancing.Model.DescribeLoadBalancerAttributesRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing", "DescribeLoadBalancerAttributes");
     try
     {
         #if DESKTOP
         return(client.DescribeLoadBalancerAttributes(request));
         #elif CORECLR
         return(client.DescribeLoadBalancerAttributesAsync(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;
     }
 }