ElasticLoadBalancingClient
Elastic Load Balancing
A load balancer can distribute incoming traffic across your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered instances and ensures that it routes traffic only to healthy instances. You configure your load balancer to accept incoming traffic by specifying one or more listeners, which are configured with a protocol and port number for connections from clients to the load balancer and a protocol and port number for connections from the load balancer to the instances.
Elastic Load Balancing supports three types of load balancers: Application Load Balancers, Network Load Balancers, and Classic Load Balancers. You can select a load balancer based on your application needs. For more information, see the Elastic Load Balancing User Guide.
This reference covers the 2012-06-01 API, which supports Classic Load Balancers. The 2015-12-01 API supports Application Load Balancers and Network Load Balancers.
To get started, create a load balancer with one or more listeners using CreateLoadBalancer. Register your instances with the load balancer using RegisterInstancesWithLoadBalancer.
All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds with a 200 OK response code.
Functions
Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.
Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.
Adds one or more subnets to the set of configured subnets for the specified load balancer.
Specifies the health check settings to use when evaluating the health state of your EC2 instances.
Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.
Generates a stickiness policy with sticky session lifetimes controlled by the lifetime of the browser (user-agent) or a specified expiration period. This policy can be associated only with HTTP/HTTPS listeners.
Creates a Classic Load Balancer.
Creates one or more listeners for the specified load balancer. If a listener with the specified port does not already exist, it is created; otherwise, the properties of the new listener must match the properties of the existing listener.
Creates a policy with the specified attributes for the specified load balancer.
Deletes the specified load balancer.
Deletes the specified listeners from the specified load balancer.
Deletes the specified policy from the specified load balancer. This policy must not be enabled for any listeners.
Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.
Describes the current Elastic Load Balancing resource limits for your AWS account.
Describes the state of the specified instances with respect to the specified load balancer. If no instances are specified, the call describes the state of all instances that are currently registered with the load balancer. If instances are specified, their state is returned even if they are no longer registered with the load balancer. The state of terminated instances is not returned.
Describes the attributes for the specified load balancer.
Describes the specified policies.
Describes the specified load balancer policy types or all load balancer policy types.
Describes the specified the load balancers. If no load balancers are specified, the call describes all of your load balancers.
Describes the tags associated with the specified load balancers.
Removes the specified subnets from the set of configured subnets for the load balancer.
Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer in EC2-Classic or a default VPC.
Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer in EC2-Classic or a default VPC.
Modifies the attributes of the specified load balancer.
Adds the specified instances to the specified load balancer.
Removes one or more tags from the specified load balancer.
Sets the certificate that terminates the specified listener's SSL connections. The specified certificate replaces any prior certificate that was used on the same load balancer and port.
Replaces the set of policies associated with the specified port on which the EC2 instance is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the instance ports; this policy type is composed of multiple public key policies.
Replaces the current set of policies for the specified load balancer port with the specified set of policies.
Inherited functions
Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.
Associates one or more security groups with your load balancer in a virtual private cloud (VPC). The specified security groups override the previously associated security groups.
Adds one or more subnets to the set of configured subnets for the specified load balancer.
Specifies the health check settings to use when evaluating the health state of your EC2 instances.
Generates a stickiness policy with sticky session lifetimes that follow that of an application-generated cookie. This policy can be associated only with HTTP/HTTPS listeners.
Generates a stickiness policy with sticky session lifetimes controlled by the lifetime of the browser (user-agent) or a specified expiration period. This policy can be associated only with HTTP/HTTPS listeners.
Creates a Classic Load Balancer.
Creates one or more listeners for the specified load balancer. If a listener with the specified port does not already exist, it is created; otherwise, the properties of the new listener must match the properties of the existing listener.
Creates a policy with the specified attributes for the specified load balancer.
Deletes the specified load balancer.
Deletes the specified listeners from the specified load balancer.
Deletes the specified policy from the specified load balancer. This policy must not be enabled for any listeners.
Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.
Describes the current Elastic Load Balancing resource limits for your AWS account.
Describes the state of the specified instances with respect to the specified load balancer. If no instances are specified, the call describes the state of all instances that are currently registered with the load balancer. If instances are specified, their state is returned even if they are no longer registered with the load balancer. The state of terminated instances is not returned.
Describes the attributes for the specified load balancer.
Describes the specified policies.
Describes the specified load balancer policy types or all load balancer policy types.
Describes the specified the load balancers. If no load balancers are specified, the call describes all of your load balancers.
Paginate over DescribeLoadBalancersResponse results.
Describes the tags associated with the specified load balancers.
Removes the specified subnets from the set of configured subnets for the load balancer.
Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer in EC2-Classic or a default VPC.
Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer in EC2-Classic or a default VPC.
Modifies the attributes of the specified load balancer.
Adds the specified instances to the specified load balancer.
Removes one or more tags from the specified load balancer.
Sets the certificate that terminates the specified listener's SSL connections. The specified certificate replaces any prior certificate that was used on the same load balancer and port.
Replaces the set of policies associated with the specified port on which the EC2 instance is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the instance ports; this policy type is composed of multiple public key policies.
Replaces the current set of policies for the specified load balancer port with the specified set of policies.
Create a copy of the client with one or more configuration values overridden. This method allows the caller to perform scoped config overrides for one or more client operations.