Amazon.ElasticLoadBalancingV2.AmazonElasticLoadBalancingV2Client.CreateLoadBalancer C# (CSharp) Method

CreateLoadBalancer() public method

Creates an Application Load Balancer.

To create listeners for your load balancer, use CreateListener. You can add security groups, subnets, and tags when you create your load balancer, or you can add them later using SetSecurityGroups, SetSubnets, and AddTags.

To describe your current load balancers, see DescribeLoadBalancers. When you are finished with a load balancer, you can delete it using DeleteLoadBalancer.

You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Limits for Your Application Load Balancer in the Application Load Balancers Guide.

For more information, see Application Load Balancers in the Application Load Balancers Guide.

/// A load balancer with the specified name already exists for this account. /// /// A tag key was specified more than once. /// /// The requested configuration is not valid. /// /// The requested scheme is not valid. /// /// The specified security group does not exist. /// /// The specified subnet is out of available addresses. /// /// The specified subnet does not exist. /// /// You've reached the limit on the number of load balancers for your AWS account. /// /// You've reached the limit on the number of tags per load balancer. ///
public CreateLoadBalancer ( CreateLoadBalancerRequest request ) : CreateLoadBalancerResponse
request Amazon.ElasticLoadBalancingV2.Model.CreateLoadBalancerRequest Container for the necessary parameters to execute the CreateLoadBalancer service method.
return Amazon.ElasticLoadBalancingV2.Model.CreateLoadBalancerResponse
        public CreateLoadBalancerResponse CreateLoadBalancer(CreateLoadBalancerRequest request)
        {
            var marshaller = new CreateLoadBalancerRequestMarshaller();
            var unmarshaller = CreateLoadBalancerResponseUnmarshaller.Instance;

            return Invoke<CreateLoadBalancerRequest,CreateLoadBalancerResponse>(request, marshaller, unmarshaller);
        }
AmazonElasticLoadBalancingV2Client