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.autoscaling;
  
  
  
Asynchronous client for accessing AmazonAutoScaling. 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. Auto Scaling

Auto Scaling is designed to automatically launch or terminate EC2 instances based on user-defined policies, schedules, and health checks. Use this service in conjunction with the Amazon CloudWatch and Elastic Load Balancing services.

  
          implements AmazonAutoScalingAsync {

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

  
      public AmazonAutoScalingAsyncClient() {
          this(new DefaultAWSCredentialsProviderChain());
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonAutoScaling. 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 AmazonAutoScaling (ex: proxy settings, retry counts, etc.).
See also:
com.amazonaws.auth.DefaultAWSCredentialsProviderChain
  
      public AmazonAutoScalingAsyncClient(ClientConfiguration clientConfiguration) {
          this(new DefaultAWSCredentialsProviderChain(), clientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
      }

    
Constructs a new asynchronous client to invoke service methods on AmazonAutoScaling 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 AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials) {
         this(awsCredentials, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonAutoScaling 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 AmazonAutoScalingAsyncClient(AWSCredentials awsCredentialsExecutorService executorService) {
         super(awsCredentials);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonAutoScaling 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 AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials,
                 ClientConfiguration clientConfigurationExecutorService executorService) {
         super(awsCredentialsclientConfiguration);
         this. = executorService;
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonAutoScaling 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 AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider) {
         this(awsCredentialsProvider, Executors.newFixedThreadPool());
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonAutoScaling 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 AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProviderExecutorService executorService) {
         this(awsCredentialsProvidernew ClientConfiguration(), executorService);
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonAutoScaling 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 AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
                 ClientConfiguration clientConfiguration) {
         this(awsCredentialsProviderclientConfiguration, Executors.newFixedThreadPool(clientConfiguration.getMaxConnections()));
     }

    
Constructs a new asynchronous client to invoke service methods on AmazonAutoScaling 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 AmazonAutoScalingAsyncClient(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 current Auto Scaling resource limits for your AWS account.

For information about requesting an increase in these limits, see AWS Service Limits in the Amazon Web Services General Reference .

Parameters:
describeAccountLimitsRequest Container for the necessary parameters to execute the DescribeAccountLimits operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeAccountLimits service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeAccountLimitsResultdescribeAccountLimitsAsync(final DescribeAccountLimitsRequest describeAccountLimitsRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeAccountLimitsResult>() {
             public DescribeAccountLimitsResult call() throws Exception {
                 return describeAccountLimits(describeAccountLimitsRequest);
         }
     });
     }

    

Describes the current Auto Scaling resource limits for your AWS account.

For information about requesting an increase in these limits, see AWS Service Limits in the Amazon Web Services General Reference .

Parameters:
describeAccountLimitsRequest Container for the necessary parameters to execute the DescribeAccountLimits operation on AmazonAutoScaling.
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 DescribeAccountLimits service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeAccountLimitsRequest describeAccountLimitsRequest,
             final AsyncHandler<DescribeAccountLimitsRequestDescribeAccountLimitsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeAccountLimitsResult>() {
             public DescribeAccountLimitsResult call() throws Exception {
               DescribeAccountLimitsResult result;
                 try {
                 result = describeAccountLimits(describeAccountLimitsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeAccountLimitsRequestresult);
                  return result;
         }
     });
     }
    
    

Describes one or more Auto Scaling groups. If a list of names is not provided, the call describes all Auto Scaling groups.

Parameters:
describeAutoScalingGroupsRequest Container for the necessary parameters to execute the DescribeAutoScalingGroups operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeAutoScalingGroups service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DescribeAutoScalingGroupsResult call() throws Exception {
                 return describeAutoScalingGroups(describeAutoScalingGroupsRequest);
         }
     });
     }

    

Describes one or more Auto Scaling groups. If a list of names is not provided, the call describes all Auto Scaling groups.

Parameters:
describeAutoScalingGroupsRequest Container for the necessary parameters to execute the DescribeAutoScalingGroups operation on AmazonAutoScaling.
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 DescribeAutoScalingGroups service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest,
             final AsyncHandler<DescribeAutoScalingGroupsRequestDescribeAutoScalingGroupsResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribeAutoScalingGroupsResult call() throws Exception {
               DescribeAutoScalingGroupsResult result;
                 try {
                 result = describeAutoScalingGroups(describeAutoScalingGroupsRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeAutoScalingGroupsRequestresult);
                  return result;
         }
     });
     }
    
    

Resumes the specified suspended Auto Scaling processes for the specified Auto Scaling group. To resume specific processes, use the ScalingProcesses parameter. To resume all processes, omit the ScalingProcesses parameter. For more information, see Suspend and Resume Auto Scaling Processes in the Auto Scaling Developer Guide .

Parameters:
resumeProcessesRequest Container for the necessary parameters to execute the ResumeProcesses operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the ResumeProcesses service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidresumeProcessesAsync(final ResumeProcessesRequest resumeProcessesRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 resumeProcesses(resumeProcessesRequest);
                 return null;
         }
     });
     }

    

Resumes the specified suspended Auto Scaling processes for the specified Auto Scaling group. To resume specific processes, use the ScalingProcesses parameter. To resume all processes, omit the ScalingProcesses parameter. For more information, see Suspend and Resume Auto Scaling Processes in the Auto Scaling Developer Guide .

Parameters:
resumeProcessesRequest Container for the necessary parameters to execute the ResumeProcesses operation on AmazonAutoScaling.
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 ResumeProcesses service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidresumeProcessesAsync(
             final ResumeProcessesRequest resumeProcessesRequest,
             final AsyncHandler<ResumeProcessesRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 resumeProcesses(resumeProcessesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(resumeProcessesRequestnull);
                  return null;
         }
     });
     }
    
    

Enables monitoring of the specified metrics for the specified Auto Scaling group.

You can only enable metrics collection if InstanceMonitoring in the launch configuration for the group is set to True .

Parameters:
enableMetricsCollectionRequest Container for the necessary parameters to execute the EnableMetricsCollection operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the EnableMetricsCollection service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidenableMetricsCollectionAsync(final EnableMetricsCollectionRequest enableMetricsCollectionRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 enableMetricsCollection(enableMetricsCollectionRequest);
                 return null;
         }
     });
     }

    

Enables monitoring of the specified metrics for the specified Auto Scaling group.

You can only enable metrics collection if InstanceMonitoring in the launch configuration for the group is set to True .

Parameters:
enableMetricsCollectionRequest Container for the necessary parameters to execute the EnableMetricsCollection operation on AmazonAutoScaling.
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 EnableMetricsCollection service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             final EnableMetricsCollectionRequest enableMetricsCollectionRequest,
             final AsyncHandler<EnableMetricsCollectionRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 enableMetricsCollection(enableMetricsCollectionRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(enableMetricsCollectionRequestnull);
                  return null;
         }
     });
     }
    
    

Describes the lifecycle hooks for the specified Auto Scaling group.

Parameters:
describeLifecycleHooksRequest Container for the necessary parameters to execute the DescribeLifecycleHooks operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeLifecycleHooks service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribeLifecycleHooksResultdescribeLifecycleHooksAsync(final DescribeLifecycleHooksRequest describeLifecycleHooksRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeLifecycleHooksResult>() {
             public DescribeLifecycleHooksResult call() throws Exception {
                 return describeLifecycleHooks(describeLifecycleHooksRequest);
         }
     });
     }

    

Describes the lifecycle hooks for the specified Auto Scaling group.

Parameters:
describeLifecycleHooksRequest Container for the necessary parameters to execute the DescribeLifecycleHooks operation on AmazonAutoScaling.
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 DescribeLifecycleHooks service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeLifecycleHooksRequest describeLifecycleHooksRequest,
             final AsyncHandler<DescribeLifecycleHooksRequestDescribeLifecycleHooksResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribeLifecycleHooksResult>() {
             public DescribeLifecycleHooksResult call() throws Exception {
               DescribeLifecycleHooksResult result;
                 try {
                 result = describeLifecycleHooks(describeLifecycleHooksRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeLifecycleHooksRequestresult);
                  return result;
         }
     });
     }
    
    

Describes the policies for the specified Auto Scaling group.

Parameters:
describePoliciesRequest Container for the necessary parameters to execute the DescribePolicies operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribePolicies service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
     public Future<DescribePoliciesResultdescribePoliciesAsync(final DescribePoliciesRequest describePoliciesRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribePoliciesResult>() {
             public DescribePoliciesResult call() throws Exception {
                 return describePolicies(describePoliciesRequest);
         }
     });
     }

    

Describes the policies for the specified Auto Scaling group.

Parameters:
describePoliciesRequest Container for the necessary parameters to execute the DescribePolicies operation on AmazonAutoScaling.
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 DescribePolicies service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             final DescribePoliciesRequest describePoliciesRequest,
             final AsyncHandler<DescribePoliciesRequestDescribePoliciesResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<DescribePoliciesResult>() {
             public DescribePoliciesResult call() throws Exception {
               DescribePoliciesResult result;
                 try {
                 result = describePolicies(describePoliciesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describePoliciesRequestresult);
                  return result;
         }
     });
     }
    
    

Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.

Parameters:
describeScalingProcessTypesRequest Container for the necessary parameters to execute the DescribeScalingProcessTypes operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeScalingProcessTypes service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             throws AmazonServiceExceptionAmazonClientException {
             public DescribeScalingProcessTypesResult call() throws Exception {
                 return describeScalingProcessTypes(describeScalingProcessTypesRequest);
         }
     });
     }

    

Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.

Parameters:
describeScalingProcessTypesRequest Container for the necessary parameters to execute the DescribeScalingProcessTypes operation on AmazonAutoScaling.
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 DescribeScalingProcessTypes service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             final DescribeScalingProcessTypesRequest describeScalingProcessTypesRequest,
                     throws AmazonServiceExceptionAmazonClientException {
             public DescribeScalingProcessTypesResult call() throws Exception {
               DescribeScalingProcessTypesResult result;
                 try {
                 result = describeScalingProcessTypes(describeScalingProcessTypesRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(describeScalingProcessTypesRequestresult);
                  return result;
         }
     });
     }
    
    

Deletes the specified launch configuration.

The launch configuration must not be attached to an Auto Scaling group. When this call completes, the launch configuration is no longer available for use.

Parameters:
deleteLaunchConfigurationRequest Container for the necessary parameters to execute the DeleteLaunchConfiguration operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DeleteLaunchConfiguration service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoiddeleteLaunchConfigurationAsync(final DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 deleteLaunchConfiguration(deleteLaunchConfigurationRequest);
                 return null;
         }
     });
     }

    

Deletes the specified launch configuration.

The launch configuration must not be attached to an Auto Scaling group. When this call completes, the launch configuration is no longer available for use.

Parameters:
deleteLaunchConfigurationRequest Container for the necessary parameters to execute the DeleteLaunchConfiguration operation on AmazonAutoScaling.
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 DeleteLaunchConfiguration service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
             final DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest,
             final AsyncHandler<DeleteLaunchConfigurationRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
               try {
                 deleteLaunchConfiguration(deleteLaunchConfigurationRequest);
               } catch (Exception ex) {
                   asyncHandler.onError(ex);
             throw ex;
               }
               asyncHandler.onSuccess(deleteLaunchConfigurationRequestnull);
                  return null;
         }
     });
     }
    
    

Creates an Auto Scaling group with the specified name and attributes.

If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating these limits, see DescribeAccountLimits.

For more information, see Auto Scaling Groups in the Auto Scaling Developer Guide .

Parameters:
createAutoScalingGroupRequest Container for the necessary parameters to execute the CreateAutoScalingGroup operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the CreateAutoScalingGroup service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
 
     public Future<VoidcreateAutoScalingGroupAsync(final CreateAutoScalingGroupRequest createAutoScalingGroupRequest
             throws AmazonServiceExceptionAmazonClientException {
         return .submit(new Callable<Void>() {
             public Void call() throws Exception {
                 createAutoScalingGroup(createAutoScalingGroupRequest);
                 return null;
         }
     });
     }

    

Creates an Auto Scaling group with the specified name and attributes.

If you exceed your maximum limit of Auto Scaling groups, which by default is 20 per region, the call fails. For information about viewing and updating these limits, see DescribeAccountLimits.

For more information, see Auto Scaling Groups in the Auto Scaling Developer Guide .

Parameters:
createAutoScalingGroupRequest Container for the necessary parameters to execute the CreateAutoScalingGroup operation on AmazonAutoScaling.
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 CreateAutoScalingGroup service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final CreateAutoScalingGroupRequest createAutoScalingGroupRequest,
            final AsyncHandler<CreateAutoScalingGroupRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                createAutoScalingGroup(createAutoScalingGroupRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(createAutoScalingGroupRequestnull);
                 return null;
        }
    });
    }
    
    

Attaches one or more EC2 instances to the specified Auto Scaling group.

For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling Developer Guide .

Parameters:
attachInstancesRequest Container for the necessary parameters to execute the AttachInstances operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the AttachInstances service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidattachInstancesAsync(final AttachInstancesRequest attachInstancesRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                attachInstances(attachInstancesRequest);
                return null;
        }
    });
    }

    

Attaches one or more EC2 instances to the specified Auto Scaling group.

For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling Developer Guide .

Parameters:
attachInstancesRequest Container for the necessary parameters to execute the AttachInstances operation on AmazonAutoScaling.
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 AttachInstances service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final AttachInstancesRequest attachInstancesRequest,
            final AsyncHandler<AttachInstancesRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                attachInstances(attachInstancesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(attachInstancesRequestnull);
                 return null;
        }
    });
    }
    
    

Describes one or more scaling activities for the specified Auto Scaling group. If you omit the ActivityIds , the call returns all activities from the past six weeks. Activities are sorted by the start time. Activities still in progress appear first on the list.

Parameters:
describeScalingActivitiesRequest Container for the necessary parameters to execute the DescribeScalingActivities operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeScalingActivities service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeScalingActivitiesResult call() throws Exception {
                return describeScalingActivities(describeScalingActivitiesRequest);
        }
    });
    }

    

Describes one or more scaling activities for the specified Auto Scaling group. If you omit the ActivityIds , the call returns all activities from the past six weeks. Activities are sorted by the start time. Activities still in progress appear first on the list.

Parameters:
describeScalingActivitiesRequest Container for the necessary parameters to execute the DescribeScalingActivities operation on AmazonAutoScaling.
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 DescribeScalingActivities service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final DescribeScalingActivitiesRequest describeScalingActivitiesRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeScalingActivitiesResult call() throws Exception {
              DescribeScalingActivitiesResult result;
                try {
                result = describeScalingActivities(describeScalingActivitiesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeScalingActivitiesRequestresult);
                 return result;
        }
    });
    }
    
    

Describes the notification actions associated with the specified Auto Scaling group.

Parameters:
describeNotificationConfigurationsRequest Container for the necessary parameters to execute the DescribeNotificationConfigurations operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeNotificationConfigurations service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeNotificationConfigurationsResult call() throws Exception {
                return describeNotificationConfigurations(describeNotificationConfigurationsRequest);
        }
    });
    }

    

Describes the notification actions associated with the specified Auto Scaling group.

Parameters:
describeNotificationConfigurationsRequest Container for the necessary parameters to execute the DescribeNotificationConfigurations operation on AmazonAutoScaling.
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 DescribeNotificationConfigurations service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final DescribeNotificationConfigurationsRequest describeNotificationConfigurationsRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeNotificationConfigurationsResult call() throws Exception {
              DescribeNotificationConfigurationsResult result;
                try {
                result = describeNotificationConfigurations(describeNotificationConfigurationsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeNotificationConfigurationsRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes the specified lifecycle hook.

If there are any outstanding lifecycle actions, they are completed first ( ABANDON for launching instances, CONTINUE for terminating instances).

Parameters:
deleteLifecycleHookRequest Container for the necessary parameters to execute the DeleteLifecycleHook operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DeleteLifecycleHook service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<DeleteLifecycleHookResultdeleteLifecycleHookAsync(final DeleteLifecycleHookRequest deleteLifecycleHookRequest
            throws AmazonServiceExceptionAmazonClientException {
            public DeleteLifecycleHookResult call() throws Exception {
                return deleteLifecycleHook(deleteLifecycleHookRequest);
        }
    });
    }

    

Deletes the specified lifecycle hook.

If there are any outstanding lifecycle actions, they are completed first ( ABANDON for launching instances, CONTINUE for terminating instances).

Parameters:
deleteLifecycleHookRequest Container for the necessary parameters to execute the DeleteLifecycleHook operation on AmazonAutoScaling.
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 DeleteLifecycleHook service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final DeleteLifecycleHookRequest deleteLifecycleHookRequest,
            final AsyncHandler<DeleteLifecycleHookRequestDeleteLifecycleHookResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DeleteLifecycleHookResult call() throws Exception {
              DeleteLifecycleHookResult result;
                try {
                result = deleteLifecycleHook(deleteLifecycleHookRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteLifecycleHookRequestresult);
                 return result;
        }
    });
    }
    
    

Creates or updates a lifecycle hook for the specified Auto Scaling Group.

A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in service; for example, either when the instance launches or before the instance terminates.

This operation is a part of the basic sequence for adding a lifecycle hook to an Auto Scaling group:

  1. Create a notification target. A target can be either an Amazon SQS queue or an Amazon SNS topic.
  2. Create an IAM role. This role allows Auto Scaling to publish lifecycle notifications to the designated SQS queue or SNS topic.
  3. Create the lifecycle hook. You can create a hook that acts when instances launch or when instances terminate.
  4. If necessary, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. Complete the lifecycle action.

For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .

Parameters:
putLifecycleHookRequest Container for the necessary parameters to execute the PutLifecycleHook operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the PutLifecycleHook service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<PutLifecycleHookResultputLifecycleHookAsync(final PutLifecycleHookRequest putLifecycleHookRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<PutLifecycleHookResult>() {
            public PutLifecycleHookResult call() throws Exception {
                return putLifecycleHook(putLifecycleHookRequest);
        }
    });
    }

    

Creates or updates a lifecycle hook for the specified Auto Scaling Group.

A lifecycle hook tells Auto Scaling that you want to perform an action on an instance that is not actively in service; for example, either when the instance launches or before the instance terminates.

This operation is a part of the basic sequence for adding a lifecycle hook to an Auto Scaling group:

  1. Create a notification target. A target can be either an Amazon SQS queue or an Amazon SNS topic.
  2. Create an IAM role. This role allows Auto Scaling to publish lifecycle notifications to the designated SQS queue or SNS topic.
  3. Create the lifecycle hook. You can create a hook that acts when instances launch or when instances terminate.
  4. If necessary, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. Complete the lifecycle action.

For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .

Parameters:
putLifecycleHookRequest Container for the necessary parameters to execute the PutLifecycleHook operation on AmazonAutoScaling.
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 PutLifecycleHook service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final PutLifecycleHookRequest putLifecycleHookRequest,
            final AsyncHandler<PutLifecycleHookRequestPutLifecycleHookResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<PutLifecycleHookResult>() {
            public PutLifecycleHookResult call() throws Exception {
              PutLifecycleHookResult result;
                try {
                result = putLifecycleHook(putLifecycleHookRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(putLifecycleHookRequestresult);
                 return result;
        }
    });
    }
    
    

Describes the termination policies supported by Auto Scaling.

Parameters:
describeTerminationPolicyTypesRequest Container for the necessary parameters to execute the DescribeTerminationPolicyTypes operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeTerminationPolicyTypes service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public DescribeTerminationPolicyTypesResult call() throws Exception {
                return describeTerminationPolicyTypes(describeTerminationPolicyTypesRequest);
        }
    });
    }

    

Describes the termination policies supported by Auto Scaling.

Parameters:
describeTerminationPolicyTypesRequest Container for the necessary parameters to execute the DescribeTerminationPolicyTypes operation on AmazonAutoScaling.
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 DescribeTerminationPolicyTypes service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final DescribeTerminationPolicyTypesRequest describeTerminationPolicyTypesRequest,
                    throws AmazonServiceExceptionAmazonClientException {
            public DescribeTerminationPolicyTypesResult call() throws Exception {
              DescribeTerminationPolicyTypesResult result;
                try {
                result = describeTerminationPolicyTypes(describeTerminationPolicyTypesRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(describeTerminationPolicyTypesRequestresult);
                 return result;
        }
    });
    }
    
    

Describes the specified tags.

You can use filters to limit the results. For example, you can query for the tags for a specific Auto Scaling group. You can specify multiple values for a filter. A tag must match at least one of the specified values for it to be included in the results.

You can also specify multiple filters. The result includes information for a particular tag only if it matches all the filters. If there's no match, no special message is returned.

Parameters:
describeTagsRequest Container for the necessary parameters to execute the DescribeTags operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeTags service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling 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 specified tags.

You can use filters to limit the results. For example, you can query for the tags for a specific Auto Scaling group. You can specify multiple values for a filter. A tag must match at least one of the specified values for it to be included in the results.

You can also specify multiple filters. The result includes information for a particular tag only if it matches all the filters. If there's no match, no special message is returned.

Parameters:
describeTagsRequest Container for the necessary parameters to execute the DescribeTags operation on AmazonAutoScaling.
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 AmazonAutoScaling.
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 AmazonAutoScaling 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;
        }
    });
    }
    
    

Deletes the specified tags.

Parameters:
deleteTagsRequest Container for the necessary parameters to execute the DeleteTags operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DeleteTags service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteTagsAsync(final DeleteTagsRequest deleteTagsRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deleteTags(deleteTagsRequest);
                return null;
        }
    });
    }

    

Deletes the specified tags.

Parameters:
deleteTagsRequest Container for the necessary parameters to execute the DeleteTags operation on AmazonAutoScaling.
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 DeleteTags service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteTagsAsync(
            final DeleteTagsRequest deleteTagsRequest,
            final AsyncHandler<DeleteTagsRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deleteTags(deleteTagsRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteTagsRequestnull);
                 return null;
        }
    });
    }
    
    

Executes the specified policy.

Parameters:
executePolicyRequest Container for the necessary parameters to execute the ExecutePolicy operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the ExecutePolicy service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidexecutePolicyAsync(final ExecutePolicyRequest executePolicyRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                executePolicy(executePolicyRequest);
                return null;
        }
    });
    }

    

Executes the specified policy.

Parameters:
executePolicyRequest Container for the necessary parameters to execute the ExecutePolicy operation on AmazonAutoScaling.
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 ExecutePolicy service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final ExecutePolicyRequest executePolicyRequest,
            final AsyncHandler<ExecutePolicyRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                executePolicy(executePolicyRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(executePolicyRequestnull);
                 return null;
        }
    });
    }
    
    

Removes one or more load balancers from the specified Auto Scaling group.

When you detach a load balancer, it enters the Removing state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. Note that the instances remain running.

Parameters:
detachLoadBalancersRequest Container for the necessary parameters to execute the DetachLoadBalancers operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DetachLoadBalancers service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<DetachLoadBalancersResultdetachLoadBalancersAsync(final DetachLoadBalancersRequest detachLoadBalancersRequest
            throws AmazonServiceExceptionAmazonClientException {
            public DetachLoadBalancersResult call() throws Exception {
                return detachLoadBalancers(detachLoadBalancersRequest);
        }
    });
    }

    

Removes one or more load balancers from the specified Auto Scaling group.

When you detach a load balancer, it enters the Removing state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. Note that the instances remain running.

Parameters:
detachLoadBalancersRequest Container for the necessary parameters to execute the DetachLoadBalancers operation on AmazonAutoScaling.
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 DetachLoadBalancers service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final DetachLoadBalancersRequest detachLoadBalancersRequest,
            final AsyncHandler<DetachLoadBalancersRequestDetachLoadBalancersResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
            public DetachLoadBalancersResult call() throws Exception {
              DetachLoadBalancersResult result;
                try {
                result = detachLoadBalancers(detachLoadBalancersRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(detachLoadBalancersRequestresult);
                 return result;
        }
    });
    }
    
    

Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.

Parameters:
putScalingPolicyRequest Container for the necessary parameters to execute the PutScalingPolicy operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the PutScalingPolicy service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<PutScalingPolicyResultputScalingPolicyAsync(final PutScalingPolicyRequest putScalingPolicyRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<PutScalingPolicyResult>() {
            public PutScalingPolicyResult call() throws Exception {
                return putScalingPolicy(putScalingPolicyRequest);
        }
    });
    }

    

Creates or updates a policy for an Auto Scaling group. To update an existing policy, use the existing policy name and set the parameters you want to change. Any existing parameter not changed in an update to an existing policy is not changed in this update request.

Parameters:
putScalingPolicyRequest Container for the necessary parameters to execute the PutScalingPolicy operation on AmazonAutoScaling.
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 PutScalingPolicy service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final PutScalingPolicyRequest putScalingPolicyRequest,
            final AsyncHandler<PutScalingPolicyRequestPutScalingPolicyResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<PutScalingPolicyResult>() {
            public PutScalingPolicyResult call() throws Exception {
              PutScalingPolicyResult result;
                try {
                result = putScalingPolicy(putScalingPolicyRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(putScalingPolicyRequestresult);
                 return result;
        }
    });
    }
    
    

Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to this topic can have messages for events delivered to an endpoint such as a web server or email address.

For more information see Getting Notifications When Your Auto Scaling Group Changes in the Auto Scaling Developer Guide .

This configuration overwrites an existing configuration.

Parameters:
putNotificationConfigurationRequest Container for the necessary parameters to execute the PutNotificationConfiguration operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the PutNotificationConfiguration service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<VoidputNotificationConfigurationAsync(final PutNotificationConfigurationRequest putNotificationConfigurationRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                putNotificationConfiguration(putNotificationConfigurationRequest);
                return null;
        }
    });
    }

    

Configures an Auto Scaling group to send notifications when specified events take place. Subscribers to this topic can have messages for events delivered to an endpoint such as a web server or email address.

For more information see Getting Notifications When Your Auto Scaling Group Changes in the Auto Scaling Developer Guide .

This configuration overwrites an existing configuration.

Parameters:
putNotificationConfigurationRequest Container for the necessary parameters to execute the PutNotificationConfiguration operation on AmazonAutoScaling.
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 PutNotificationConfiguration service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final PutNotificationConfigurationRequest putNotificationConfigurationRequest,
            final AsyncHandler<PutNotificationConfigurationRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                putNotificationConfiguration(putNotificationConfigurationRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(putNotificationConfigurationRequestnull);
                 return null;
        }
    });
    }
    
    

Moves the specified instances out of Standby mode.

For more information, see Auto Scaling InService State in the Auto Scaling Developer Guide .

Parameters:
exitStandbyRequest Container for the necessary parameters to execute the ExitStandby operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the ExitStandby service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<ExitStandbyResultexitStandbyAsync(final ExitStandbyRequest exitStandbyRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ExitStandbyResult>() {
            public ExitStandbyResult call() throws Exception {
                return exitStandby(exitStandbyRequest);
        }
    });
    }

    

Moves the specified instances out of Standby mode.

For more information, see Auto Scaling InService State in the Auto Scaling Developer Guide .

Parameters:
exitStandbyRequest Container for the necessary parameters to execute the ExitStandby operation on AmazonAutoScaling.
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 ExitStandby service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final ExitStandbyRequest exitStandbyRequest,
            final AsyncHandler<ExitStandbyRequestExitStandbyResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<ExitStandbyResult>() {
            public ExitStandbyResult call() throws Exception {
              ExitStandbyResult result;
                try {
                result = exitStandby(exitStandbyRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(exitStandbyRequestresult);
                 return result;
        }
    });
    }
    
    

Deletes the specified Auto Scaling policy.

Parameters:
deletePolicyRequest Container for the necessary parameters to execute the DeletePolicy operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DeletePolicy service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeletePolicyAsync(final DeletePolicyRequest deletePolicyRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deletePolicy(deletePolicyRequest);
                return null;
        }
    });
    }

    

Deletes the specified Auto Scaling policy.

Parameters:
deletePolicyRequest Container for the necessary parameters to execute the DeletePolicy operation on AmazonAutoScaling.
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 DeletePolicy service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeletePolicyAsync(
            final DeletePolicyRequest deletePolicyRequest,
            final AsyncHandler<DeletePolicyRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deletePolicy(deletePolicyRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deletePolicyRequestnull);
                 return null;
        }
    });
    }
    
    

Deletes the specified scheduled action.

Parameters:
deleteScheduledActionRequest Container for the necessary parameters to execute the DeleteScheduledAction operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DeleteScheduledAction service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
    public Future<VoiddeleteScheduledActionAsync(final DeleteScheduledActionRequest deleteScheduledActionRequest
            throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
                deleteScheduledAction(deleteScheduledActionRequest);
                return null;
        }
    });
    }

    

Deletes the specified scheduled action.

Parameters:
deleteScheduledActionRequest Container for the necessary parameters to execute the DeleteScheduledAction operation on AmazonAutoScaling.
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 DeleteScheduledAction service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            final DeleteScheduledActionRequest deleteScheduledActionRequest,
            final AsyncHandler<DeleteScheduledActionRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException {
        return .submit(new Callable<Void>() {
            public Void call() throws Exception {
              try {
                deleteScheduledAction(deleteScheduledActionRequest);
              } catch (Exception ex) {
                  asyncHandler.onError(ex);
            throw ex;
              }
              asyncHandler.onSuccess(deleteScheduledActionRequestnull);
                 return null;
        }
    });
    }
    
    

Completes the lifecycle action for the associated token initiated under the given lifecycle hook with the specified result.

This operation is a part of the basic sequence for adding a lifecycle hook to an Auto Scaling group:

  1. Create a notification target. A target can be either an Amazon SQS queue or an Amazon SNS topic.
  2. Create an IAM role. This role allows Auto Scaling to publish lifecycle notifications to the designated SQS queue or SNS topic.
  3. Create the lifecycle hook. You can create a hook that acts when instances launch or when instances terminate.
  4. If necessary, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. Complete the lifecycle action .

For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .

Parameters:
completeLifecycleActionRequest Container for the necessary parameters to execute the CompleteLifecycleAction operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the CompleteLifecycleAction service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.
            throws AmazonServiceExceptionAmazonClientException {
            public CompleteLifecycleActionResult call() throws Exception {
                return completeLifecycleAction(completeLifecycleActionRequest);
        }
    });
    }

    

Completes the lifecycle action for the associated token initiated under the given lifecycle hook with the specified result.

This operation is a part of the basic sequence for adding a lifecycle hook to an Auto Scaling group:

  1. Create a notification target. A target can be either an Amazon SQS queue or an Amazon SNS topic.
  2. Create an IAM role. This role allows Auto Scaling to publish lifecycle notifications to the designated SQS queue or SNS topic.
  3. Create the lifecycle hook. You can create a hook that acts when instances launch or when instances terminate.
  4. If necessary, record the lifecycle action heartbeat to keep the instance in a pending state.
  5. Complete the lifecycle action .

For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .

Parameters:
completeLifecycleActionRequest Container for the necessary parameters to execute the CompleteLifecycleAction operation on AmazonAutoScaling.
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 CompleteLifecycleAction service method, as returned by AmazonAutoScaling.
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 AmazonAutoScaling indicating either a problem with the data in the request, or a server side issue.