public void ElasticLoadBalancingV2CreateLoadBalancer()
        {
            #region elbv2-create-load-balancer-1

            var response = client.CreateLoadBalancer(new CreateLoadBalancerRequest
            {
                Name    = "my-load-balancer",
                Subnets = new List <string> {
                    "subnet-b7d581c0",
                    "subnet-8360a9e7"
                }
            });

            List <LoadBalancer> loadBalancers = response.LoadBalancers;

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