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 LoadBalancer.

After the call has completed successfully, a new LoadBalancer is created; however, it will not be usable until at least one instance has been registered. When the LoadBalancer creation is completed, the client can check whether or not it is usable by using the DescribeInstanceHealth action. The LoadBalancer is usable as soon as any registered instance is InService .

NOTE: Currently, the client's quota of LoadBalancers is limited to ten per Region.

NOTE: LoadBalancer DNS names vary depending on the Region they're created in. For LoadBalancers created in the United States, the DNS name ends with: us-east-1.elb.amazonaws.com (for the US Standard Region) us-west-1.elb.amazonaws.com (for the Northern California Region) For LoadBalancers created in the EU (Ireland) Region, the DNS name ends with: eu-west-1.elb.amazonaws.com

For information on using CreateLoadBalancer to create a new LoadBalancer in Amazon EC2, go to Using Query API section in the Creating a Load Balancer With SSL Cipher Settings and Back-end Authentication topic of the Elastic Load Balancing Developer Guide .

For information on using CreateLoadBalancer to create a new LoadBalancer in Amazon VPC, go to Using Query API section in the Creating a Basic Load Balancer in Amazon VPC topic of the Elastic Load Balancing Developer Guide .

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 LoadBalancer. Traffic will be equally distributed across all zones. This list can be modified after the creation of the LoadBalancer by calling EnableAvailabilityZonesFroLoadBalancer.

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 LoadBalancer. The name must be unique within your set of LoadBalancers.

Scheme
The type of a LoadBalancer. By default, Elastic Load Balancing creates an Internet-facing LoadBalancer with a publicly resolvable DNS name, which resolves to public IP addresses. Specify the value internal for this option to create an internal LoadBalancer with a DNS name that resolves to private IP addresses. This option is only available for LoadBalancers attached to an Amazon VPC.

SecurityGroups
The security groups assigned to your LoadBalancer within your VPC.

Subnets
A list of subnet IDs in your VPC to attach to your LoadBalancer.

ToString()()()()
Returns a string that represents the current object.
(Inherited from Object.)
WithAvailabilityZones(array<String>[]()[][])
Adds elements to the AvailabilityZones collection

WithAvailabilityZones(IEnumerable<(Of <<'(String>)>>))
Adds elements to the AvailabilityZones collection

WithListeners(array<Listener>[]()[][])
Adds elements to the Listeners collection

WithListeners(IEnumerable<(Of <<'(Listener>)>>))
Adds elements to the Listeners collection

WithLoadBalancerName(String)
Sets the LoadBalancerName property

WithScheme(String)
Sets the Scheme property

WithSecurityGroups(array<String>[]()[][])
Adds elements to the SecurityGroups collection

WithSecurityGroups(IEnumerable<(Of <<'(String>)>>))
Adds elements to the SecurityGroups collection

WithSubnets(array<String>[]()[][])
Adds elements to the Subnets collection

WithSubnets(IEnumerable<(Of <<'(String>)>>))
Adds elements to the Subnets collection

Inheritance Hierarchy
Object
AmazonWebServiceRequest
 CreateLoadBalancerRequest
See Also

Assembly: AWSSDK (Module: AWSSDK) Version: 1.5.20.0 (1.5.20.0)