Creates a new load balancer.
After the call has completed successfully, a new load balancer is created with a unique Domain Name Service (DNS) name. The DNS name includes the name of the AWS region in which the load balance was created. For example, if your load balancer was created in the United States, the DNS name might end with either of the following:
- us-east-1.elb.amazonaws.com (for the Northern Virginia Region)
- us-west-1.elb.amazonaws.com (for the Northern California Region)
For information about the AWS regions supported by Elastic Load Balancing, see Regions and Endpoints .
You can create up to 20 load balancers per region per account.
Elastic Load Balancing supports load balancing your Amazon EC2 instances launched within any one of the following platforms:
- EC2-Classic
For information on creating and managing your load balancers in EC2-Classic, see Deploy Elastic Load Balancing in Amazon EC2-Classic .
- EC2-VPC
For information on creating and managing your load balancers in EC2-VPC, see Deploy Elastic Load Balancing in Amazon VPC .

C# |
public class CreateLoadBalancerRequest : AmazonWebServiceRequest

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description | ||
---|---|---|---|---|
![]() | CreateLoadBalancerRequest()()()() |
Default constructor for a new CreateLoadBalancerRequest object. Callers should use the
properties or fluent setter (With...) methods to initialize this object after creating it.
| ||
![]() | CreateLoadBalancerRequest(String) |
Constructs a new CreateLoadBalancerRequest object.
Callers should use the properties or fluent setter (With...) methods to
initialize any additional object members.
| ||
![]() | CreateLoadBalancerRequest(String, List<(Of <<'(Listener>)>>), List<(Of <<'(String>)>>)) |
Constructs a new CreateLoadBalancerRequest object.
Callers should use the properties or fluent setter (With...) methods to
initialize any additional object members.
| ||
![]() | AvailabilityZones |
A list of Availability Zones. At least one Availability Zone must be specified. Specified Availability Zones must be in the same EC2 Region
as the load balancer. Traffic will be equally distributed across all zones. You can later add more Availability Zones after the creation of
the load balancer by calling EnableAvailabilityZonesForLoadBalancer action.
| ||
![]() | Equals(Object) | (Inherited from Object.) | ||
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) | ||
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) | ||
![]() | Listeners |
A list of the following tuples: LoadBalancerPort, InstancePort, and Protocol.
| ||
![]() | LoadBalancerName |
The name associated with the load balancer. The name must be unique within your set of load balancers.
| ||
![]() | Scheme |
The type of a load balancer. By default, Elastic Load Balancing creates an Internet-facing load balancer with a publicly resolvable DNS
name, which resolves to public IP addresses. For more informationabout Internet-facing and Internal load balancers, see Internet-facing and Internal Load
Balancers. Specify the value internal for this option to create an internal load balancer with a DNS name that resolves to
private IP addresses.
| ||
![]() | SecurityGroups |
The security groups to assign to your load balancer within your VPC.
| ||
![]() | Subnets |
A list of subnet IDs in your VPC to attach to your load balancer. Specify one subnet per Availability Zone.
| ||
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) | ||
![]() | WithAvailabilityZones(array<String>[]()[][]) | Obsolete.
Adds elements to the AvailabilityZones collection
| ||
![]() | WithAvailabilityZones(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the AvailabilityZones collection
| ||
![]() | WithListeners(array<Listener>[]()[][]) | Obsolete.
Adds elements to the Listeners collection
| ||
![]() | WithListeners(IEnumerable<(Of <<'(Listener>)>>)) | Obsolete.
Adds elements to the Listeners collection
| ||
![]() | WithLoadBalancerName(String) | Obsolete.
Sets the LoadBalancerName property
| ||
![]() | WithScheme(String) | Obsolete.
Sets the Scheme property
| ||
![]() | WithSecurityGroups(array<String>[]()[][]) | Obsolete.
Adds elements to the SecurityGroups collection
| ||
![]() | WithSecurityGroups(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the SecurityGroups collection
| ||
![]() | WithSubnets(array<String>[]()[][]) | Obsolete.
Adds elements to the Subnets collection
| ||
![]() | WithSubnets(IEnumerable<(Of <<'(String>)>>)) | Obsolete.
Adds elements to the Subnets collection
|

Object | ||
![]() | AmazonWebServiceRequest | |
![]() | CreateLoadBalancerRequest |