AWS SDK Version 2 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

.NET Framework 3.5
 
Creates a load balancer.

If the call completes successfully, a new load balancer is created with a unique Domain Name Service (DNS) name. The load balancer receives incoming traffic and routes it to the registered instances. For more information, see How Elastic Load Balancing Works in the Elastic Load Balancing Developer Guide.

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 Elastic Load Balancing Limits in the Elastic Load Balancing Developer Guide.

Namespace: Amazon.ElasticLoadBalancing
Assembly: AWSSDK.dll
Version: (assembly version)

Syntax

C#
public abstract CreateLoadBalancerResponse CreateLoadBalancer(
         CreateLoadBalancerRequest request
)

Parameters

request
Type: Amazon.ElasticLoadBalancing.Model.CreateLoadBalancerRequest

Container for the necessary parameters to execute the CreateLoadBalancer service method.

Return Value
Type: Amazon.ElasticLoadBalancing.Model.CreateLoadBalancerResponse
The response from the CreateLoadBalancer service method, as returned by ElasticLoadBalancing.

Exceptions

ExceptionCondition
CertificateNotFoundException The specified SSL ID does not refer to a valid SSL certificate in AWS Identity and Access Management (IAM).
DuplicateAccessPointNameException The specified load balancer name already exists for this account.
DuplicateTagKeysException A tag key was specified more than once.
InvalidConfigurationRequestException The requested configuration change is not valid.
InvalidSchemeException The specified value for the schema is not valid. You can only specify a scheme for load balancers in a VPC.
InvalidSecurityGroupException One or more of the specified security groups do not exist.
InvalidSubnetException The specified VPC has no associated Internet gateway.
SubnetNotFoundException One or more of the specified subnets do not exist.
TooManyAccessPointsException The quota for the number of load balancers has been reached.
TooManyTagsException The quota for the number of tags that can be assigned to a load balancer has been reached.

Version Information

.NET Framework:
Supported in: 4.5, 4.0, 3.5