Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
   /*
    * Copyright 2010-2015 Amazon.com, Inc. or its affiliates. All Rights Reserved.
    * 
    * Licensed under the Apache License, Version 2.0 (the "License").
    * You may not use this file except in compliance with the License.
    * A copy of the License is located at
    * 
    *  http://aws.amazon.com/apache2.0
    * 
   * or in the "license" file accompanying this file. This file is distributed
   * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
   * express or implied. See the License for the specific language governing
   * permissions and limitations under the License.
   */
  package com.amazonaws.services.elasticloadbalancing;
  
  
  
Asynchronous client for accessing AmazonElasticLoadBalancing. All asynchronous calls made using this client are non-blocking. Callers could either process the result and handle the exceptions in the worker thread by providing a callback handler when making the call, or use the returned Future object to check the result of the call in the calling thread. Elastic Load Balancing

Elastic Load Balancing automatically distributes incoming web traffic across multiple Amazon EC2 instances.

All Elastic Load Balancing actions and commands are idempotent , which means that they complete no more than one time. If you repeat a request or a command, the action succeeds with a 200 OK response code.

For detailed information about the features of Elastic Load Balancing, see Managing Load Balancers in the Elastic Load Balancing Developer Guide .

  
          implements AmazonElasticLoadBalancingAsync {

    
Executor service for executing asynchronous requests.
  
      private ExecutorService executorService;
  
      private static final int DEFAULT_THREAD_POOL_SIZE = 50;

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

  
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing. A credentials provider chain will be used that searches for credentials in this order:
  • Environment Variables - AWS_ACCESS_KEY_ID and AWS_SECRET_KEY
  • Java System Properties - aws.accessKeyId and aws.secretKey
  • Instance profile credentials delivered through the Amazon EC2 metadata service

All service calls made using this new client object are blocking, and will not return until the service call completes.

Parameters:
clientConfiguration The client configuration options controlling how this client connects to AmazonElasticLoadBalancing (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
 
     public AmazonElasticLoadBalancingAsyncClient(ClientConfiguration clientConfiguration) {
         this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing using the specified AWS account credentials. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
 
     public AmazonElasticLoadBalancingAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing using the specified AWS account credentials and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonElasticLoadBalancingAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing using the specified AWS account credentials, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentials The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonElasticLoadBalancingAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing using the specified AWS account credentials provider. Default client settings will be used, and a fixed size thread pool will be created for executing the asynchronous tasks.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
 
     public AmazonElasticLoadBalancingAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing using the specified AWS account credentials provider and executor service. Default client settings will be used.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonElasticLoadBalancingAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing using the specified AWS account credentials provider and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
 
     public AmazonElasticLoadBalancingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonElasticLoadBalancing using the specified AWS account credentials provider, executor service, and client configuration options.

All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.

Parameters:
awsCredentialsProvider The AWS credentials provider which will provide credentials to authenticate requests with AWS services.
clientConfiguration Client configuration options (ex: max retry limit, proxy settings, etc).
executorService The executor service by which all asynchronous requests will be executed.
 
     public AmazonElasticLoadBalancingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsProviderclientConfiguration);
         this. = executorService;
     }

    
Returns the executor service used by this async client to execute requests.

Returns:
The executor service used by this async client to execute requests.
 
     public ExecutorService getExecutorService() {
         return ;
     }

    
Shuts down the client, releasing all managed resources. This includes forcibly terminating all pending asynchronous service calls. Clients who wish to give pending asynchronous service calls time to complete should call getExecutorService().shutdown() followed by getExecutorService().awaitTermination() prior to calling this method.
 
     @Override
     public void shutdown() {
         super.shutdown();
         .shutdownNow();
     }
            
    

Describes the specified load balancer policy types.

You can use these policy types with CreateLoadBalancerPolicy to create policy configurations for a load balancer.

Parameters:
describeLoadBalancerPolicyTypesRequest Container for the necessary parameters to execute the DescribeLoadBalancerPolicyTypes operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DescribeLoadBalancerPolicyTypes service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DescribeLoadBalancerPolicyTypesResult call() throws Exception {
                 return describeLoadBalancerPolicyTypes(describeLoadBalancerPolicyTypesRequest);
         }
     });
     }

    

Describes the specified load balancer policy types.

You can use these policy types with CreateLoadBalancerPolicy to create policy configurations for a load balancer.

Parameters:
describeLoadBalancerPolicyTypesRequest Container for the necessary parameters to execute the DescribeLoadBalancerPolicyTypes operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeLoadBalancerPolicyTypes service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeLoadBalancerPolicyTypesRequest describeLoadBalancerPolicyTypesRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribeLoadBalancerPolicyTypesResult call() throws Exception {
               DescribeLoadBalancerPolicyTypesResult result;
                 try {
                 result = describeLoadBalancerPolicyTypes(describeLoadBalancerPolicyTypesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeLoadBalancerPolicyTypesRequestresult);
                  return result;
         }
     });
     }
    
    

Specifies the health check settings to use when evaluating the health state of your back-end instances.

For more information, see Health Checks in the Elastic Load Balancing Developer Guide .

Parameters:
configureHealthCheckRequest Container for the necessary parameters to execute the ConfigureHealthCheck operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the ConfigureHealthCheck service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
     public Future<ConfigureHealthCheckResultconfigureHealthCheckAsync(final ConfigureHealthCheckRequest configureHealthCheckRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ConfigureHealthCheckResult>() {
             public ConfigureHealthCheckResult call() throws Exception {
                 return configureHealthCheck(configureHealthCheckRequest);
         }
     });
     }

    

Specifies the health check settings to use when evaluating the health state of your back-end instances.

For more information, see Health Checks in the Elastic Load Balancing Developer Guide .

Parameters:
configureHealthCheckRequest Container for the necessary parameters to execute the ConfigureHealthCheck operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ConfigureHealthCheck service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             final ConfigureHealthCheckRequest configureHealthCheckRequest,
             final AsyncHandler<ConfigureHealthCheckRequestConfigureHealthCheckResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<ConfigureHealthCheckResult>() {
             public ConfigureHealthCheckResult call() throws Exception {
               ConfigureHealthCheckResult result;
                 try {
                 result = configureHealthCheck(configureHealthCheckRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(configureHealthCheckRequestresult);
                  return result;
         }
     });
     }
    
    

Removes the specified subnets from the set of configured subnets for the load balancer.

After a subnet is removed, all EC2 instances registered with the load balancer in the removed subnet go into the OutOfService state. Then, the load balancer balances the traffic among the remaining routable subnets.

Parameters:
detachLoadBalancerFromSubnetsRequest Container for the necessary parameters to execute the DetachLoadBalancerFromSubnets operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DetachLoadBalancerFromSubnets service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DetachLoadBalancerFromSubnetsResult call() throws Exception {
                 return detachLoadBalancerFromSubnets(detachLoadBalancerFromSubnetsRequest);
         }
     });
     }

    

Removes the specified subnets from the set of configured subnets for the load balancer.

After a subnet is removed, all EC2 instances registered with the load balancer in the removed subnet go into the OutOfService state. Then, the load balancer balances the traffic among the remaining routable subnets.

Parameters:
detachLoadBalancerFromSubnetsRequest Container for the necessary parameters to execute the DetachLoadBalancerFromSubnets operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DetachLoadBalancerFromSubnets service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             final DetachLoadBalancerFromSubnetsRequest detachLoadBalancerFromSubnetsRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public DetachLoadBalancerFromSubnetsResult call() throws Exception {
               DetachLoadBalancerFromSubnetsResult result;
                 try {
                 result = detachLoadBalancerFromSubnets(detachLoadBalancerFromSubnetsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(detachLoadBalancerFromSubnetsRequestresult);
                  return result;
         }
     });
     }
    
    

Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.

Each tag consists of a key and an optional value. If a tag with the same key is already associated with the load balancer, AddTags updates its value.

For more information, see Tagging in the Elastic Load Balancing Developer Guide .

Parameters:
addTagsRequest Container for the necessary parameters to execute the AddTags operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the AddTags service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
     public Future<AddTagsResultaddTagsAsync(final AddTagsRequest addTagsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<AddTagsResult>() {
             public AddTagsResult call() throws Exception {
                 return addTags(addTagsRequest);
         }
     });
     }

    

Adds the specified tags to the specified load balancer. Each load balancer can have a maximum of 10 tags.

Each tag consists of a key and an optional value. If a tag with the same key is already associated with the load balancer, AddTags updates its value.

For more information, see Tagging in the Elastic Load Balancing Developer Guide .

Parameters:
addTagsRequest Container for the necessary parameters to execute the AddTags operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the AddTags service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
     public Future<AddTagsResultaddTagsAsync(
             final AddTagsRequest addTagsRequest,
             final AsyncHandler<AddTagsRequestAddTagsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<AddTagsResult>() {
             public AddTagsResult call() throws Exception {
               AddTagsResult result;
                 try {
                 result = addTags(addTagsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(addTagsRequestresult);
                  return result;
         }
     });
     }
    
    

Modifies the attributes of the specified load balancer.

You can modify the load balancer attributes, such as AccessLogs , ConnectionDraining , and CrossZoneLoadBalancing by either enabling or disabling them. Or, you can modify the load balancer attribute ConnectionSettings by specifying an idle connection timeout value for your load balancer.

For more information, see the following in the Elastic Load Balancing Developer Guide :

  • Cross-Zone Load Balancing
  • Connection Draining
  • Access Logs
  • Idle Connection Timeout

Parameters:
modifyLoadBalancerAttributesRequest Container for the necessary parameters to execute the ModifyLoadBalancerAttributes operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the ModifyLoadBalancerAttributes service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public ModifyLoadBalancerAttributesResult call() throws Exception {
                 return modifyLoadBalancerAttributes(modifyLoadBalancerAttributesRequest);
         }
     });
     }

    

Modifies the attributes of the specified load balancer.

You can modify the load balancer attributes, such as AccessLogs , ConnectionDraining , and CrossZoneLoadBalancing by either enabling or disabling them. Or, you can modify the load balancer attribute ConnectionSettings by specifying an idle connection timeout value for your load balancer.

For more information, see the following in the Elastic Load Balancing Developer Guide :

  • Cross-Zone Load Balancing
  • Connection Draining
  • Access Logs
  • Idle Connection Timeout

Parameters:
modifyLoadBalancerAttributesRequest Container for the necessary parameters to execute the ModifyLoadBalancerAttributes operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ModifyLoadBalancerAttributes service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             final ModifyLoadBalancerAttributesRequest modifyLoadBalancerAttributesRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public ModifyLoadBalancerAttributesResult call() throws Exception {
               ModifyLoadBalancerAttributesResult result;
                 try {
                 result = modifyLoadBalancerAttributes(modifyLoadBalancerAttributesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(modifyLoadBalancerAttributesRequestresult);
                  return result;
         }
     });
     }
    
    

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.

For more information, see Add a Listener to Your Load Balancer in the Elastic Load Balancing Developer Guide .

Parameters:
createLoadBalancerListenersRequest Container for the necessary parameters to execute the CreateLoadBalancerListeners operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the CreateLoadBalancerListeners service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidcreateLoadBalancerListenersAsync(final CreateLoadBalancerListenersRequest createLoadBalancerListenersRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 createLoadBalancerListeners(createLoadBalancerListenersRequest);
                 return null;
         }
     });
     }

    

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.

For more information, see Add a Listener to Your Load Balancer in the Elastic Load Balancing Developer Guide .

Parameters:
createLoadBalancerListenersRequest Container for the necessary parameters to execute the CreateLoadBalancerListeners operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateLoadBalancerListeners service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             final CreateLoadBalancerListenersRequest createLoadBalancerListenersRequest,
             final AsyncHandler<CreateLoadBalancerListenersRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 createLoadBalancerListeners(createLoadBalancerListenersRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(createLoadBalancerListenersRequestnull);
                  return null;
         }
     });
     }
    
    

Deletes the specified listeners from the specified load balancer.

Parameters:
deleteLoadBalancerListenersRequest Container for the necessary parameters to execute the DeleteLoadBalancerListeners operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DeleteLoadBalancerListeners service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteLoadBalancerListenersAsync(final DeleteLoadBalancerListenersRequest deleteLoadBalancerListenersRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteLoadBalancerListeners(deleteLoadBalancerListenersRequest);
                 return null;
         }
     });
     }

    

Deletes the specified listeners from the specified load balancer.

Parameters:
deleteLoadBalancerListenersRequest Container for the necessary parameters to execute the DeleteLoadBalancerListeners operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteLoadBalancerListeners service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteLoadBalancerListenersRequest deleteLoadBalancerListenersRequest,
             final AsyncHandler<DeleteLoadBalancerListenersRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteLoadBalancerListeners(deleteLoadBalancerListenersRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteLoadBalancerListenersRequestnull);
                  return null;
         }
     });
     }
    
    

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.

This policy is similar to the policy created by CreateLBCookieStickinessPolicy, except that the lifetime of the special Elastic Load Balancing cookie, AWSELB , follows the lifetime of the application-generated cookie specified in the policy configuration. The load balancer only inserts a new stickiness cookie when the application response includes a new application cookie.

If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.

For more information, see Application-Controlled Session Stickiness in the Elastic Load Balancing Developer Guide .

Parameters:
createAppCookieStickinessPolicyRequest Container for the necessary parameters to execute the CreateAppCookieStickinessPolicy operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the CreateAppCookieStickinessPolicy service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public CreateAppCookieStickinessPolicyResult call() throws Exception {
                 return createAppCookieStickinessPolicy(createAppCookieStickinessPolicyRequest);
         }
     });
     }

    

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.

This policy is similar to the policy created by CreateLBCookieStickinessPolicy, except that the lifetime of the special Elastic Load Balancing cookie, AWSELB , follows the lifetime of the application-generated cookie specified in the policy configuration. The load balancer only inserts a new stickiness cookie when the application response includes a new application cookie.

If the application cookie is explicitly removed or expires, the session stops being sticky until a new application cookie is issued.

For more information, see Application-Controlled Session Stickiness in the Elastic Load Balancing Developer Guide .

Parameters:
createAppCookieStickinessPolicyRequest Container for the necessary parameters to execute the CreateAppCookieStickinessPolicy operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateAppCookieStickinessPolicy service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final CreateAppCookieStickinessPolicyRequest createAppCookieStickinessPolicyRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public CreateAppCookieStickinessPolicyResult call() throws Exception {
              CreateAppCookieStickinessPolicyResult result;
                try {
                result = createAppCookieStickinessPolicy(createAppCookieStickinessPolicyRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createAppCookieStickinessPolicyRequestresult);
                 return result;
        }
    });
    }
    
    

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.

For more information, see Manage Security Groups for Amazon VPC in the Elastic Load Balancing Developer Guide .

Parameters:
applySecurityGroupsToLoadBalancerRequest Container for the necessary parameters to execute the ApplySecurityGroupsToLoadBalancer operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the ApplySecurityGroupsToLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public ApplySecurityGroupsToLoadBalancerResult call() throws Exception {
                return applySecurityGroupsToLoadBalancer(applySecurityGroupsToLoadBalancerRequest);
        }
    });
    }

    

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.

For more information, see Manage Security Groups for Amazon VPC in the Elastic Load Balancing Developer Guide .

Parameters:
applySecurityGroupsToLoadBalancerRequest Container for the necessary parameters to execute the ApplySecurityGroupsToLoadBalancer operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the ApplySecurityGroupsToLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final ApplySecurityGroupsToLoadBalancerRequest applySecurityGroupsToLoadBalancerRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public ApplySecurityGroupsToLoadBalancerResult call() throws Exception {
              ApplySecurityGroupsToLoadBalancerResult result;
                try {
                result = applySecurityGroupsToLoadBalancer(applySecurityGroupsToLoadBalancerRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(applySecurityGroupsToLoadBalancerRequestresult);
                 return result;
        }
    });
    }
    
    

Describes the specified policies.

If you specify a load balancer name, the action returns the descriptions of all policies created for the load balancer. If you specify a policy name associated with your load balancer, the action returns the description of that policy. If you don't specify a load balancer name, the action returns descriptions of the specified sample policies, or descriptions of all sample policies. The names of the sample policies have the ELBSample- prefix.

Parameters:
describeLoadBalancerPoliciesRequest Container for the necessary parameters to execute the DescribeLoadBalancerPolicies operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DescribeLoadBalancerPolicies service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeLoadBalancerPoliciesResult call() throws Exception {
                return describeLoadBalancerPolicies(describeLoadBalancerPoliciesRequest);
        }
    });
    }

    

Describes the specified policies.

If you specify a load balancer name, the action returns the descriptions of all policies created for the load balancer. If you specify a policy name associated with your load balancer, the action returns the description of that policy. If you don't specify a load balancer name, the action returns descriptions of the specified sample policies, or descriptions of all sample policies. The names of the sample policies have the ELBSample- prefix.

Parameters:
describeLoadBalancerPoliciesRequest Container for the necessary parameters to execute the DescribeLoadBalancerPolicies operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeLoadBalancerPolicies service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final DescribeLoadBalancerPoliciesRequest describeLoadBalancerPoliciesRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeLoadBalancerPoliciesResult call() throws Exception {
              DescribeLoadBalancerPoliciesResult result;
                try {
                result = describeLoadBalancerPolicies(describeLoadBalancerPoliciesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeLoadBalancerPoliciesRequestresult);
                 return result;
        }
    });
    }
    
    

Associates, updates, or disables a policy with a listener for the specified load balancer. You can associate multiple policies with a listener.

Parameters:
setLoadBalancerPoliciesOfListenerRequest Container for the necessary parameters to execute the SetLoadBalancerPoliciesOfListener operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the SetLoadBalancerPoliciesOfListener service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public SetLoadBalancerPoliciesOfListenerResult call() throws Exception {
                return setLoadBalancerPoliciesOfListener(setLoadBalancerPoliciesOfListenerRequest);
        }
    });
    }

    

Associates, updates, or disables a policy with a listener for the specified load balancer. You can associate multiple policies with a listener.

Parameters:
setLoadBalancerPoliciesOfListenerRequest Container for the necessary parameters to execute the SetLoadBalancerPoliciesOfListener operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the SetLoadBalancerPoliciesOfListener service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final SetLoadBalancerPoliciesOfListenerRequest setLoadBalancerPoliciesOfListenerRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public SetLoadBalancerPoliciesOfListenerResult call() throws Exception {
              SetLoadBalancerPoliciesOfListenerResult result;
                try {
                result = setLoadBalancerPoliciesOfListener(setLoadBalancerPoliciesOfListenerRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(setLoadBalancerPoliciesOfListenerRequestresult);
                 return result;
        }
    });
    }
    
    

Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer.

There must be at least one Availability Zone registered with a load balancer at all times. After an Availability Zone is removed, all instances registered with the load balancer that are in the removed Availability Zone go into the OutOfService state. Then, the load balancer attempts to equally balance the traffic among its remaining Availability Zones.

For more information, see Disable an Availability Zone from a Load-Balanced Application in the Elastic Load Balancing Developer Guide .

Parameters:
disableAvailabilityZonesForLoadBalancerRequest Container for the necessary parameters to execute the DisableAvailabilityZonesForLoadBalancer operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DisableAvailabilityZonesForLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DisableAvailabilityZonesForLoadBalancerResult call() throws Exception {
                return disableAvailabilityZonesForLoadBalancer(disableAvailabilityZonesForLoadBalancerRequest);
        }
    });
    }

    

Removes the specified Availability Zones from the set of Availability Zones for the specified load balancer.

There must be at least one Availability Zone registered with a load balancer at all times. After an Availability Zone is removed, all instances registered with the load balancer that are in the removed Availability Zone go into the OutOfService state. Then, the load balancer attempts to equally balance the traffic among its remaining Availability Zones.

For more information, see Disable an Availability Zone from a Load-Balanced Application in the Elastic Load Balancing Developer Guide .

Parameters:
disableAvailabilityZonesForLoadBalancerRequest Container for the necessary parameters to execute the DisableAvailabilityZonesForLoadBalancer operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DisableAvailabilityZonesForLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final DisableAvailabilityZonesForLoadBalancerRequest disableAvailabilityZonesForLoadBalancerRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DisableAvailabilityZonesForLoadBalancerResult call() throws Exception {
              DisableAvailabilityZonesForLoadBalancerResult result;
                try {
                result = disableAvailabilityZonesForLoadBalancer(disableAvailabilityZonesForLoadBalancerRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(disableAvailabilityZonesForLoadBalancerRequestresult);
                 return result;
        }
    });
    }
    
    

Describes the state of the specified instances registered with the specified load balancer. If no instances are specified, the call describes the state of all instances registered with the load balancer, not including any terminated instances.

Parameters:
describeInstanceHealthRequest Container for the necessary parameters to execute the DescribeInstanceHealth operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DescribeInstanceHealth service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeInstanceHealthResult call() throws Exception {
                return describeInstanceHealth(describeInstanceHealthRequest);
        }
    });
    }

    

Describes the state of the specified instances registered with the specified load balancer. If no instances are specified, the call describes the state of all instances registered with the load balancer, not including any terminated instances.

Parameters:
describeInstanceHealthRequest Container for the necessary parameters to execute the DescribeInstanceHealth operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeInstanceHealth service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final DescribeInstanceHealthRequest describeInstanceHealthRequest,
            final AsyncHandler<DescribeInstanceHealthRequestDescribeInstanceHealthResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeInstanceHealthResult call() throws Exception {
              DescribeInstanceHealthResult result;
                try {
                result = describeInstanceHealth(describeInstanceHealthRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeInstanceHealthRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes the specified policy from the specified load balancer. This policy must not be enabled for any listeners.

Parameters:
deleteLoadBalancerPolicyRequest Container for the necessary parameters to execute the DeleteLoadBalancerPolicy operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DeleteLoadBalancerPolicy service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DeleteLoadBalancerPolicyResult call() throws Exception {
                return deleteLoadBalancerPolicy(deleteLoadBalancerPolicyRequest);
        }
    });
    }

    

Deletes the specified policy from the specified load balancer. This policy must not be enabled for any listeners.

Parameters:
deleteLoadBalancerPolicyRequest Container for the necessary parameters to execute the DeleteLoadBalancerPolicy operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteLoadBalancerPolicy service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final DeleteLoadBalancerPolicyRequest deleteLoadBalancerPolicyRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DeleteLoadBalancerPolicyResult call() throws Exception {
              DeleteLoadBalancerPolicyResult result;
                try {
                result = deleteLoadBalancerPolicy(deleteLoadBalancerPolicyRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteLoadBalancerPolicyRequestresult);
                 return result;
        }
    });
    }
    
    

Describes the tags associated with the specified load balancers.

Parameters:
describeTagsRequest Container for the necessary parameters to execute the DescribeTags operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DescribeTags service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
    public Future<DescribeTagsResultdescribeTagsAsync(final DescribeTagsRequest describeTagsRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeTagsResult>() {
            public DescribeTagsResult call() throws Exception {
                return describeTags(describeTagsRequest);
        }
    });
    }

    

Describes the tags associated with the specified load balancers.

Parameters:
describeTagsRequest Container for the necessary parameters to execute the DescribeTags operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DescribeTags service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final DescribeTagsRequest describeTagsRequest,
            final AsyncHandler<DescribeTagsRequestDescribeTagsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<DescribeTagsResult>() {
            public DescribeTagsResult call() throws Exception {
              DescribeTagsResult result;
                try {
                result = describeTags(describeTagsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeTagsRequestresult);
                 return result;
        }
    });
    }
    
    

Creates a policy with the specified attributes for the specified load balancer.

Policies are settings that are saved for your load balancer and that can be applied to the front-end listener or the back-end application server, depending on the policy type.

Parameters:
createLoadBalancerPolicyRequest Container for the necessary parameters to execute the CreateLoadBalancerPolicy operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the CreateLoadBalancerPolicy service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public CreateLoadBalancerPolicyResult call() throws Exception {
                return createLoadBalancerPolicy(createLoadBalancerPolicyRequest);
        }
    });
    }

    

Creates a policy with the specified attributes for the specified load balancer.

Policies are settings that are saved for your load balancer and that can be applied to the front-end listener or the back-end application server, depending on the policy type.

Parameters:
createLoadBalancerPolicyRequest Container for the necessary parameters to execute the CreateLoadBalancerPolicy operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateLoadBalancerPolicy service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final CreateLoadBalancerPolicyRequest createLoadBalancerPolicyRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public CreateLoadBalancerPolicyResult call() throws Exception {
              CreateLoadBalancerPolicyResult result;
                try {
                result = createLoadBalancerPolicy(createLoadBalancerPolicyRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createLoadBalancerPolicyRequestresult);
                 return result;
        }
    });
    }
    
    

Removes one or more tags from the specified load balancer.

Parameters:
removeTagsRequest Container for the necessary parameters to execute the RemoveTags operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the RemoveTags service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
    public Future<RemoveTagsResultremoveTagsAsync(final RemoveTagsRequest removeTagsRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<RemoveTagsResult>() {
            public RemoveTagsResult call() throws Exception {
                return removeTags(removeTagsRequest);
        }
    });
    }

    

Removes one or more tags from the specified load balancer.

Parameters:
removeTagsRequest Container for the necessary parameters to execute the RemoveTags operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the RemoveTags service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final RemoveTagsRequest removeTagsRequest,
            final AsyncHandler<RemoveTagsRequestRemoveTagsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<RemoveTagsResult>() {
            public RemoveTagsResult call() throws Exception {
              RemoveTagsResult result;
                try {
                result = removeTags(removeTagsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(removeTagsRequestresult);
                 return result;
        }
    });
    }
    
    

Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer.

The load balancer evenly distributes requests across all its registered Availability Zones that contain instances.

For more information, see Add Availability Zone in the Elastic Load Balancing Developer Guide .

Parameters:
enableAvailabilityZonesForLoadBalancerRequest Container for the necessary parameters to execute the EnableAvailabilityZonesForLoadBalancer operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the EnableAvailabilityZonesForLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public EnableAvailabilityZonesForLoadBalancerResult call() throws Exception {
                return enableAvailabilityZonesForLoadBalancer(enableAvailabilityZonesForLoadBalancerRequest);
        }
    });
    }

    

Adds the specified Availability Zones to the set of Availability Zones for the specified load balancer.

The load balancer evenly distributes requests across all its registered Availability Zones that contain instances.

For more information, see Add Availability Zone in the Elastic Load Balancing Developer Guide .

Parameters:
enableAvailabilityZonesForLoadBalancerRequest Container for the necessary parameters to execute the EnableAvailabilityZonesForLoadBalancer operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the EnableAvailabilityZonesForLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final EnableAvailabilityZonesForLoadBalancerRequest enableAvailabilityZonesForLoadBalancerRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public EnableAvailabilityZonesForLoadBalancerResult call() throws Exception {
              EnableAvailabilityZonesForLoadBalancerResult result;
                try {
                result = enableAvailabilityZonesForLoadBalancer(enableAvailabilityZonesForLoadBalancerRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(enableAvailabilityZonesForLoadBalancerRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes the specified load balancer.

If you are attempting to recreate a load balancer, you must reconfigure all settings. The DNS name associated with a deleted load balancer are no longer usable. The name and associated DNS record of the deleted load balancer no longer exist and traffic sent to any of its IP addresses is no longer delivered to back-end instances.

If the load balancer does not exist or has already been deleted, the call to DeleteLoadBalancer still succeeds.

Parameters:
deleteLoadBalancerRequest Container for the necessary parameters to execute the DeleteLoadBalancer operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DeleteLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteLoadBalancerAsync(final DeleteLoadBalancerRequest deleteLoadBalancerRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deleteLoadBalancer(deleteLoadBalancerRequest);
                return null;
        }
    });
    }

    

Deletes the specified load balancer.

If you are attempting to recreate a load balancer, you must reconfigure all settings. The DNS name associated with a deleted load balancer are no longer usable. The name and associated DNS record of the deleted load balancer no longer exist and traffic sent to any of its IP addresses is no longer delivered to back-end instances.

If the load balancer does not exist or has already been deleted, the call to DeleteLoadBalancer still succeeds.

Parameters:
deleteLoadBalancerRequest Container for the necessary parameters to execute the DeleteLoadBalancer operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeleteLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final DeleteLoadBalancerRequest deleteLoadBalancerRequest,
            final AsyncHandler<DeleteLoadBalancerRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deleteLoadBalancer(deleteLoadBalancerRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteLoadBalancerRequestnull);
                 return null;
        }
    });
    }
    
    

Creates a load balancer.

If the call completes 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 balancer was created. For example, the DNS name might end with either of the following:

  • us-east-1.elb.amazonaws.com
  • us-west-2.elb.amazonaws.com

For information about the AWS regions supported by Elastic Load Balancing, see Regions and Endpoints in the Amazon Web Services General Reference .

You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Elastic Load Balancing Limits in the Elastic Load Balancing Developer Guide .

Elastic Load Balancing supports load balancing your EC2 instances launched in either the EC2-Classic or EC2-VPC platform. For more information, see Elastic Load Balancing in EC2-Classic or Elastic Load Balancing in a VPC in the Elastic Load Balancing Developer Guide .

Parameters:
createLoadBalancerRequest Container for the necessary parameters to execute the CreateLoadBalancer operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the CreateLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
    public Future<CreateLoadBalancerResultcreateLoadBalancerAsync(final CreateLoadBalancerRequest createLoadBalancerRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateLoadBalancerResult>() {
            public CreateLoadBalancerResult call() throws Exception {
                return createLoadBalancer(createLoadBalancerRequest);
        }
    });
    }

    

Creates a load balancer.

If the call completes 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 balancer was created. For example, the DNS name might end with either of the following:

  • us-east-1.elb.amazonaws.com
  • us-west-2.elb.amazonaws.com

For information about the AWS regions supported by Elastic Load Balancing, see Regions and Endpoints in the Amazon Web Services General Reference .

You can create up to 20 load balancers per region per account. You can request an increase for the number of load balancers for your account. For more information, see Elastic Load Balancing Limits in the Elastic Load Balancing Developer Guide .

Elastic Load Balancing supports load balancing your EC2 instances launched in either the EC2-Classic or EC2-VPC platform. For more information, see Elastic Load Balancing in EC2-Classic or Elastic Load Balancing in a VPC in the Elastic Load Balancing Developer Guide .

Parameters:
createLoadBalancerRequest Container for the necessary parameters to execute the CreateLoadBalancer operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the CreateLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final CreateLoadBalancerRequest createLoadBalancerRequest,
            final AsyncHandler<CreateLoadBalancerRequestCreateLoadBalancerResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<CreateLoadBalancerResult>() {
            public CreateLoadBalancerResult call() throws Exception {
              CreateLoadBalancerResult result;
                try {
                result = createLoadBalancer(createLoadBalancerRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createLoadBalancerRequestresult);
                 return result;
        }
    });
    }
    
    

Replaces the set of policies associated with the specified port on which the back-end server is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the back-end ports; this policy type is composed of multiple public key policies.

Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies, use the PolicyNames parameter to list the policies that you want to enable.

You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify that the policy is associated with the back-end server.

Parameters:
setLoadBalancerPoliciesForBackendServerRequest Container for the necessary parameters to execute the SetLoadBalancerPoliciesForBackendServer operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the SetLoadBalancerPoliciesForBackendServer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public SetLoadBalancerPoliciesForBackendServerResult call() throws Exception {
                return setLoadBalancerPoliciesForBackendServer(setLoadBalancerPoliciesForBackendServerRequest);
        }
    });
    }

    

Replaces the set of policies associated with the specified port on which the back-end server is listening with a new set of policies. At this time, only the back-end server authentication policy type can be applied to the back-end ports; this policy type is composed of multiple public key policies.

Each time you use SetLoadBalancerPoliciesForBackendServer to enable the policies, use the PolicyNames parameter to list the policies that you want to enable.

You can use DescribeLoadBalancers or DescribeLoadBalancerPolicies to verify that the policy is associated with the back-end server.

Parameters:
setLoadBalancerPoliciesForBackendServerRequest Container for the necessary parameters to execute the SetLoadBalancerPoliciesForBackendServer operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the SetLoadBalancerPoliciesForBackendServer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final SetLoadBalancerPoliciesForBackendServerRequest setLoadBalancerPoliciesForBackendServerRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public SetLoadBalancerPoliciesForBackendServerResult call() throws Exception {
              SetLoadBalancerPoliciesForBackendServerResult result;
                try {
                result = setLoadBalancerPoliciesForBackendServer(setLoadBalancerPoliciesForBackendServerRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(setLoadBalancerPoliciesForBackendServerRequestresult);
                 return result;
        }
    });
    }
    
    

Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.

You can use DescribeLoadBalancers to verify that the instance is deregistered from the load balancer.

For more information, see Deregister and Register Amazon EC2 Instances in the Elastic Load Balancing Developer Guide .

Parameters:
deregisterInstancesFromLoadBalancerRequest Container for the necessary parameters to execute the DeregisterInstancesFromLoadBalancer operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the DeregisterInstancesFromLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DeregisterInstancesFromLoadBalancerResult call() throws Exception {
                return deregisterInstancesFromLoadBalancer(deregisterInstancesFromLoadBalancerRequest);
        }
    });
    }

    

Deregisters the specified instances from the specified load balancer. After the instance is deregistered, it no longer receives traffic from the load balancer.

You can use DescribeLoadBalancers to verify that the instance is deregistered from the load balancer.

For more information, see Deregister and Register Amazon EC2 Instances in the Elastic Load Balancing Developer Guide .

Parameters:
deregisterInstancesFromLoadBalancerRequest Container for the necessary parameters to execute the DeregisterInstancesFromLoadBalancer operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the DeregisterInstancesFromLoadBalancer service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final DeregisterInstancesFromLoadBalancerRequest deregisterInstancesFromLoadBalancerRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DeregisterInstancesFromLoadBalancerResult call() throws Exception {
              DeregisterInstancesFromLoadBalancerResult result;
                try {
                result = deregisterInstancesFromLoadBalancer(deregisterInstancesFromLoadBalancerRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deregisterInstancesFromLoadBalancerRequestresult);
                 return result;
        }
    });
    }
    
    

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.

For more information about updating your SSL certificate, see Updating an SSL Certificate for a Load Balancer in the Elastic Load Balancing Developer Guide .

Parameters:
setLoadBalancerListenerSSLCertificateRequest Container for the necessary parameters to execute the SetLoadBalancerListenerSSLCertificate operation on AmazonElasticLoadBalancing.
Returns:
A Java Future object containing the response from the SetLoadBalancerListenerSSLCertificate service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidsetLoadBalancerListenerSSLCertificateAsync(final SetLoadBalancerListenerSSLCertificateRequest setLoadBalancerListenerSSLCertificateRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                setLoadBalancerListenerSSLCertificate(setLoadBalancerListenerSSLCertificateRequest);
                return null;
        }
    });
    }

    

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.

For more information about updating your SSL certificate, see Updating an SSL Certificate for a Load Balancer in the Elastic Load Balancing Developer Guide .

Parameters:
setLoadBalancerListenerSSLCertificateRequest Container for the necessary parameters to execute the SetLoadBalancerListenerSSLCertificate operation on AmazonElasticLoadBalancing.
asyncHandler Asynchronous callback handler for events in the life-cycle of the request. Users could provide the implementation of the four callback methods in this interface to process the operation result or handle the exception.
Returns:
A Java Future object containing the response from the SetLoadBalancerListenerSSLCertificate service method, as returned by AmazonElasticLoadBalancing.
Throws:
com.amazonaws.AmazonClientException If any internal errors are encountered inside the client while attempting to make the request or handle the response. For example if a network connection is not available.
com.amazonaws.AmazonServiceException If an error response is returned by AmazonElasticLoadBalancing indicating either a problem with the data in the request, or a server side issue.
            final SetLoadBalancerListenerSSLCertificateRequest setLoadBalancerListenerSSLCertificateRequest,
            final AsyncHandler<SetLoadBalancerListenerSSLCertificateRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                setLoadBalancerListenerSSLCertificate(setLoadBalancerListenerSSLCertificateRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(setLoadBalancerListenerSSLCertificateRequestnull);
                 return null;