Class: AWS.ELBv2
- Inherits:
-
AWS.Service
- Object
- AWS.Service
- AWS.ELBv2
- Identifier:
- elbv2
- API Version:
- 2015-12-01
- Defined in:
- (unknown)
Overview
Constructs a service interface object. Each API operation is exposed as a function on service.
Service Description
A load balancer distributes incoming traffic across targets, such as your EC2 instances. This enables you to increase the availability of your application. The load balancer also monitors the health of its registered targets and ensures that it routes traffic only to healthy targets. 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. You configure a target group with a protocol and port number for connections from the load balancer to the targets, and with health check settings to be used when checking the health status of the targets.
Elastic Load Balancing supports the following types of load balancers: Application Load Balancers, Network Load Balancers, Gateway Load Balancers, and Classic Load Balancers. This reference covers the following load balancer types:
-
Application Load Balancer - Operates at the application layer (layer 7) and supports HTTP and HTTPS.
-
Network Load Balancer - Operates at the transport layer (layer 4) and supports TCP, TLS, and UDP.
-
Gateway Load Balancer - Operates at the network layer (layer 3).
For more information, see the Elastic Load Balancing User Guide.
All Elastic Load Balancing operations are idempotent, which means that they complete at most one time. If you repeat an operation, it succeeds.
Sending a Request Using ELBv2
var elbv2 = new AWS.ELBv2();
elbv2.createTargetGroup(params, function (err, data) {
if (err) console.log(err, err.stack); // an error occurred
else console.log(data); // successful response
});
Locking the API Version
In order to ensure that the ELBv2 object uses this specific API, you can
construct the object by passing the apiVersion option to the constructor:
var elbv2 = new AWS.ELBv2({apiVersion: '2015-12-01'});
You can also set the API version globally in AWS.config.apiVersions using
the elbv2 service identifier:
AWS.config.apiVersions = {
elbv2: '2015-12-01',
// other service API versions
};
var elbv2 = new AWS.ELBv2();
Waiter Resource States
This service supports a list of resource states that can be polled using the waitFor() method. The resource states are:
loadBalancerExists, loadBalancerAvailable, loadBalancersDeleted, targetInService, targetDeregistered
Constructor Summary collapse
-
new AWS.ELBv2(options = {}) ⇒ Object
constructor
Constructs a service object.
Property Summary collapse
-
endpoint ⇒ AWS.Endpoint
readwrite
An Endpoint object representing the endpoint URL for service requests.
Properties inherited from AWS.Service
Method Summary collapse
-
addListenerCertificates(params = {}, callback) ⇒ AWS.Request
Adds the specified SSL server certificate to the certificate list for the specified HTTPS or TLS listener.
If the certificate in already in the certificate list, the call is successful but the certificate is not added again.
For more information, see HTTPS listeners in the Application Load Balancers Guide or TLS listeners in the Network Load Balancers Guide.
. -
addTags(params = {}, callback) ⇒ AWS.Request
Adds the specified tags to the specified Elastic Load Balancing resource.
-
addTrustStoreRevocations(params = {}, callback) ⇒ AWS.Request
Adds the specified revocation file to the specified trust store.
.
-
createListener(params = {}, callback) ⇒ AWS.Request
Creates a listener for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
This operation is idempotent, which means that it completes at most one time.
-
createLoadBalancer(params = {}, callback) ⇒ AWS.Request
Creates an Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
This operation is idempotent, which means that it completes at most one time.
-
createRule(params = {}, callback) ⇒ AWS.Request
Creates a rule for the specified listener.
-
createTargetGroup(params = {}, callback) ⇒ AWS.Request
Creates a target group.
For more information, see the following:
This operation is idempotent, which means that it completes at most one time.
-
createTrustStore(params = {}, callback) ⇒ AWS.Request
Creates a trust store.
.
-
deleteListener(params = {}, callback) ⇒ AWS.Request
Deletes the specified listener.
Alternatively, your listener is deleted when you delete the load balancer to which it is attached.
. -
deleteLoadBalancer(params = {}, callback) ⇒ AWS.Request
Deletes the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
-
deleteRule(params = {}, callback) ⇒ AWS.Request
Deletes the specified rule.
You can't delete the default rule.
. -
deleteSharedTrustStoreAssociation(params = {}, callback) ⇒ AWS.Request
Deletes a shared trust store association.
.
-
deleteTargetGroup(params = {}, callback) ⇒ AWS.Request
Deletes the specified target group.
You can delete a target group if it is not referenced by any actions.
-
deleteTrustStore(params = {}, callback) ⇒ AWS.Request
Deletes a trust store.
.
-
deregisterTargets(params = {}, callback) ⇒ AWS.Request
Deregisters the specified targets from the specified target group.
-
describeAccountLimits(params = {}, callback) ⇒ AWS.Request
Describes the current Elastic Load Balancing resource limits for your Amazon Web Services account.
For more information, see the following:
. -
describeListenerAttributes(params = {}, callback) ⇒ AWS.Request
Describes the attributes for the specified listener.
.
-
describeListenerCertificates(params = {}, callback) ⇒ AWS.Request
Describes the default certificate and the certificate list for the specified HTTPS or TLS listener.
If the default certificate is also in the certificate list, it appears twice in the results (once with
IsDefaultset to true and once withIsDefaultset to false).For more information, see SSL certificates in the Application Load Balancers Guide or Server certificates in the Network Load Balancers Guide.
. -
describeListeners(params = {}, callback) ⇒ AWS.Request
Describes the specified listeners or the listeners for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
-
describeLoadBalancerAttributes(params = {}, callback) ⇒ AWS.Request
Describes the attributes for the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
For more information, see the following:
-
Load balancer attributes in the Application Load Balancers Guide
-
Load balancer attributes in the Network Load Balancers Guide
-
Load balancer attributes in the Gateway Load Balancers Guide
-
-
describeLoadBalancers(params = {}, callback) ⇒ AWS.Request
Describes the specified load balancers or all of your load balancers.
.
-
describeRules(params = {}, callback) ⇒ AWS.Request
Describes the specified rules or the rules for the specified listener.
-
describeSSLPolicies(params = {}, callback) ⇒ AWS.Request
Describes the specified policies or all policies used for SSL negotiation.
For more information, see Security policies in the Application Load Balancers Guide or Security policies in the Network Load Balancers Guide.
. -
describeTags(params = {}, callback) ⇒ AWS.Request
Describes the tags for the specified Elastic Load Balancing resources.
-
describeTargetGroupAttributes(params = {}, callback) ⇒ AWS.Request
Describes the attributes for the specified target group.
For more information, see the following:
-
Target group attributes in the Application Load Balancers Guide
-
Target group attributes in the Network Load Balancers Guide
-
Target group attributes in the Gateway Load Balancers Guide
-
-
describeTargetGroups(params = {}, callback) ⇒ AWS.Request
Describes the specified target groups or all of your target groups.
-
describeTargetHealth(params = {}, callback) ⇒ AWS.Request
Describes the health of the specified targets or all of your targets.
.
-
describeTrustStoreAssociations(params = {}, callback) ⇒ AWS.Request
Describes all resources associated with the specified trust store.
.
-
describeTrustStoreRevocations(params = {}, callback) ⇒ AWS.Request
Describes the revocation files in use by the specified trust store or revocation files.
.
-
describeTrustStores(params = {}, callback) ⇒ AWS.Request
Describes all trust stores for the specified account.
.
-
getResourcePolicy(params = {}, callback) ⇒ AWS.Request
Retrieves the resource policy for a specified resource.
.
-
getTrustStoreCaCertificatesBundle(params = {}, callback) ⇒ AWS.Request
Retrieves the ca certificate bundle.
This action returns a pre-signed S3 URI which is active for ten minutes.
. -
getTrustStoreRevocationContent(params = {}, callback) ⇒ AWS.Request
Retrieves the specified revocation file.
This action returns a pre-signed S3 URI which is active for ten minutes.
. -
modifyListener(params = {}, callback) ⇒ AWS.Request
Replaces the specified properties of the specified listener.
-
modifyListenerAttributes(params = {}, callback) ⇒ AWS.Request
Modifies the specified attributes of the specified listener.
.
-
modifyLoadBalancerAttributes(params = {}, callback) ⇒ AWS.Request
Modifies the specified attributes of the specified Application Load Balancer, Network Load Balancer, or Gateway Load Balancer.
If any of the specified attributes can't be modified as requested, the call fails.
-
modifyRule(params = {}, callback) ⇒ AWS.Request
Replaces the specified properties of the specified rule.
-
modifyTargetGroup(params = {}, callback) ⇒ AWS.Request
Modifies the health checks used when evaluating the health state of the targets in the specified target group.
.
-
modifyTargetGroupAttributes(params = {}, callback) ⇒ AWS.Request
Modifies the specified attributes of the specified target group.
.
-
modifyTrustStore(params = {}, callback) ⇒ AWS.Request
Update the ca certificate bundle for the specified trust store.
.
-
registerTargets(params = {}, callback) ⇒ AWS.Request
Registers the specified targets with the specified target group.
If the target is an EC2 instance, it must be in the
runningstate when you register it.By default, the load balancer routes requests to registered targets using the protocol and port for the target group.
-
removeListenerCertificates(params = {}, callback) ⇒ AWS.Request
Removes the specified certificate from the certificate list for the specified HTTPS or TLS listener.
.
-
removeTags(params = {}, callback) ⇒ AWS.Request
Removes the specified tags from the specified Elastic Load Balancing resources.
-
removeTrustStoreRevocations(params = {}, callback) ⇒ AWS.Request
Removes the specified revocation file from the specified trust store.
.
-
setIpAddressType(params = {}, callback) ⇒ AWS.Request
Sets the type of IP addresses used by the subnets of the specified load balancer.
.
-
setRulePriorities(params = {}, callback) ⇒ AWS.Request
Sets the priorities of the specified rules.
You can reorder the rules as long as there are no priority conflicts in the new order.
-
setSecurityGroups(params = {}, callback) ⇒ AWS.Request
Associates the specified security groups with the specified Application Load Balancer or Network Load Balancer.
-
setSubnets(params = {}, callback) ⇒ AWS.Request
Enables the Availability Zones for the specified public subnets for the specified Application Load Balancer, Network Load Balancer or Gateway Load Balancer.
-
waitFor(state, params = {}, callback) ⇒ AWS.Request
Waits for a given ELBv2 resource.
Methods inherited from AWS.Service
makeRequest, makeUnauthenticatedRequest, setupRequestListeners, defineService
Constructor Details
new AWS.ELBv2(options = {}) ⇒ Object
Constructs a service object. This object has one method for each API operation.