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 API. 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
Assembly: AWSSDK (in AWSSDK.dll) Version: 1.4.10.0 (1.4.10.0)
Syntax
| C# | Visual Basic | Visual C++ |
public class CreateLoadBalancerRequest : AmazonWebServiceRequest
Public Class CreateLoadBalancerRequest _ Inherits AmazonWebServiceRequest
public ref class CreateLoadBalancerRequest : public AmazonWebServiceRequest
Members
| All Members | Constructors | Properties | Methods |
| 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 LoadBalancer. Traffic will be equally distributed across all zones. This list can be modified after the creation of the LoadBalancer.
| |
| 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 LoadBalancer. The name must be unique within your set of LoadBalancers.
| |
| 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()()()() | (Inherited from Object.) | |
| WithAvailabilityZones(IEnumerable<(Of <<'(String>)>>)) |
Adds elements to the AvailabilityZones collection
| |
| WithAvailabilityZones(array<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
| |
| WithSecurityGroups(IEnumerable<(Of <<'(String>)>>)) |
Adds elements to the SecurityGroups collection
| |
| WithSecurityGroups(array<String>[]()[][]) |
Adds elements to the SecurityGroups collection
| |
| WithSubnets(IEnumerable<(Of <<'(String>)>>)) |
Adds elements to the Subnets collection
| |
| WithSubnets(array<String>[]()[][]) |
Adds elements to the Subnets collection
|
Inheritance Hierarchy
Amazon.Runtime..::..AmazonWebServiceRequest
Amazon.ElasticLoadBalancing.Model..::..CreateLoadBalancerRequest