public void ElasticLoadBalancingAttachLoadBalancerToSubnets()
        {
            #region elb-attach-load-balancer-to-subnets-1

            var response = client.AttachLoadBalancerToSubnets(new AttachLoadBalancerToSubnetsRequest
            {
                LoadBalancerName = "my-load-balancer",
                Subnets          = new List <string> {
                    "subnet-0ecac448"
                }
            });

            List <string> subnets = response.Subnets;

            #endregion
        }
 private Amazon.ElasticLoadBalancing.Model.AttachLoadBalancerToSubnetsResponse CallAWSServiceOperation(IAmazonElasticLoadBalancing client, Amazon.ElasticLoadBalancing.Model.AttachLoadBalancerToSubnetsRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Elastic Load Balancing", "AttachLoadBalancerToSubnets");
     try
     {
         #if DESKTOP
         return(client.AttachLoadBalancerToSubnets(request));
         #elif CORECLR
         return(client.AttachLoadBalancerToSubnetsAsync(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;
     }
 }