AWS SDK for .NET Documentation
CreateLoadBalancerRequest Class
AmazonAmazon.ElasticLoadBalancing.ModelCreateLoadBalancerRequest Did this page help you?   Yes   No    Tell us about it...
Container for the parameters to the CreateLoadBalancer operation.

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:

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:

Declaration Syntax
C#
public class CreateLoadBalancerRequest : AmazonWebServiceRequest
Members
All MembersConstructorsMethodsProperties



IconMemberDescription
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)
Determines whether the specified Object is equal to the current 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.
Note:
This option is only available for load balancers created within EC2-VPC.

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

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 CreateLoadBalancerRequest
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.60.0 (1.5.60.0)