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;
  
  
Interface for accessing AmazonAutoScaling asynchronously. Each asynchronous method will return a Java Future object, and users are also allowed to provide a callback handler. 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.

  
  public interface AmazonAutoScalingAsync extends AmazonAutoScaling {
    

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.
  
              throws AmazonServiceExceptionAmazonClientException;

    

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.
  
                     throws AmazonServiceExceptionAmazonClientException;

    

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;

    

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.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

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(ResumeProcessesRequest resumeProcessesRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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(ResumeProcessesRequest resumeProcessesRequest,
             AsyncHandler<ResumeProcessesRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

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(EnableMetricsCollectionRequest enableMetricsCollectionRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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.
 
     public Future<VoidenableMetricsCollectionAsync(EnableMetricsCollectionRequest enableMetricsCollectionRequest,
             AsyncHandler<EnableMetricsCollectionRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

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.
 
             throws AmazonServiceExceptionAmazonClientException;

    

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.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

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(DescribePoliciesRequest describePoliciesRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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.
 
             AsyncHandler<DescribePoliciesRequestDescribePoliciesResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

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;

    

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.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

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(DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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.
 
     public Future<VoiddeleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest,
             AsyncHandler<DeleteLaunchConfigurationRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

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(CreateAutoScalingGroupRequest createAutoScalingGroupRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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.
 
     public Future<VoidcreateAutoScalingGroupAsync(CreateAutoScalingGroupRequest createAutoScalingGroupRequest,
             AsyncHandler<CreateAutoScalingGroupRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

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(AttachInstancesRequest attachInstancesRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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.
 
     public Future<VoidattachInstancesAsync(AttachInstancesRequest attachInstancesRequest,
             AsyncHandler<AttachInstancesRequestVoidasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

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;

    

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.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

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;

    

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.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

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.
 
             throws AmazonServiceExceptionAmazonClientException;

    

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.
 
             AsyncHandler<DeleteLifecycleHookRequestDeleteLifecycleHookResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

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(PutLifecycleHookRequest putLifecycleHookRequest
             throws AmazonServiceExceptionAmazonClientException;

    

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.
 
             AsyncHandler<PutLifecycleHookRequestPutLifecycleHookResultasyncHandler)
                     throws AmazonServiceExceptionAmazonClientException;

    

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;

    

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.
 
                     throws AmazonServiceExceptionAmazonClientException;

    

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(DescribeTagsRequest describeTagsRequest
            throws AmazonServiceExceptionAmazonClientException;

    

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.
    public Future<DescribeTagsResultdescribeTagsAsync(DescribeTagsRequest describeTagsRequest,
            AsyncHandler<DescribeTagsRequestDescribeTagsResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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(DeleteTagsRequest deleteTagsRequest
            throws AmazonServiceExceptionAmazonClientException;

    

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(DeleteTagsRequest deleteTagsRequest,
            AsyncHandler<DeleteTagsRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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(ExecutePolicyRequest executePolicyRequest
            throws AmazonServiceExceptionAmazonClientException;

    

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.
    public Future<VoidexecutePolicyAsync(ExecutePolicyRequest executePolicyRequest,
            AsyncHandler<ExecutePolicyRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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.
            throws AmazonServiceExceptionAmazonClientException;

    

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.
                    throws AmazonServiceExceptionAmazonClientException;

    

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.
            throws AmazonServiceExceptionAmazonClientException;

    

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.
            AsyncHandler<PutScalingPolicyRequestPutScalingPolicyResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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(PutNotificationConfigurationRequest putNotificationConfigurationRequest
            throws AmazonServiceExceptionAmazonClientException;

    

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.
    public Future<VoidputNotificationConfigurationAsync(PutNotificationConfigurationRequest putNotificationConfigurationRequest,
            AsyncHandler<PutNotificationConfigurationRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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(ExitStandbyRequest exitStandbyRequest
            throws AmazonServiceExceptionAmazonClientException;

    

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.
    public Future<ExitStandbyResultexitStandbyAsync(ExitStandbyRequest exitStandbyRequest,
            AsyncHandler<ExitStandbyRequestExitStandbyResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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(DeletePolicyRequest deletePolicyRequest
            throws AmazonServiceExceptionAmazonClientException;

    

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(DeletePolicyRequest deletePolicyRequest,
            AsyncHandler<DeletePolicyRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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(DeleteScheduledActionRequest deleteScheduledActionRequest
            throws AmazonServiceExceptionAmazonClientException;

    

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.
    public Future<VoiddeleteScheduledActionAsync(DeleteScheduledActionRequest deleteScheduledActionRequest,
            AsyncHandler<DeleteScheduledActionRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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;

    

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.
                    throws AmazonServiceExceptionAmazonClientException;

    

Deletes the specified notification.

Parameters:
deleteNotificationConfigurationRequest Container for the necessary parameters to execute the DeleteNotificationConfiguration operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DeleteNotificationConfiguration 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<VoiddeleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest deleteNotificationConfigurationRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Deletes the specified notification.

Parameters:
deleteNotificationConfigurationRequest Container for the necessary parameters to execute the DeleteNotificationConfiguration 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 DeleteNotificationConfiguration 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<VoiddeleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest deleteNotificationConfigurationRequest,
            AsyncHandler<DeleteNotificationConfigurationRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Sets the health status of the specified instance.

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

Parameters:
setInstanceHealthRequest Container for the necessary parameters to execute the SetInstanceHealth operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the SetInstanceHealth 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<VoidsetInstanceHealthAsync(SetInstanceHealthRequest setInstanceHealthRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Sets the health status of the specified instance.

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

Parameters:
setInstanceHealthRequest Container for the necessary parameters to execute the SetInstanceHealth 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 SetInstanceHealth 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<VoidsetInstanceHealthAsync(SetInstanceHealthRequest setInstanceHealthRequest,
            AsyncHandler<SetInstanceHealthRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Describes the notification types that are supported by Auto Scaling.

Parameters:
describeAutoScalingNotificationTypesRequest Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeAutoScalingNotificationTypes 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;

    

Describes the notification types that are supported by Auto Scaling.

Parameters:
describeAutoScalingNotificationTypesRequest Container for the necessary parameters to execute the DescribeAutoScalingNotificationTypes 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 DescribeAutoScalingNotificationTypes 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;

    

Suspends the specified Auto Scaling processes for the specified Auto Scaling group. To suspend specific processes, use the ScalingProcesses parameter. To suspend all processes, omit the ScalingProcesses parameter.

Note that if you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly.

To resume processes that have been suspended, use ResumeProcesses.

For more information, see Suspend and Resume Auto Scaling Processes in the Auto Scaling Developer Guide .

Parameters:
suspendProcessesRequest Container for the necessary parameters to execute the SuspendProcesses operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the SuspendProcesses 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<VoidsuspendProcessesAsync(SuspendProcessesRequest suspendProcessesRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Suspends the specified Auto Scaling processes for the specified Auto Scaling group. To suspend specific processes, use the ScalingProcesses parameter. To suspend all processes, omit the ScalingProcesses parameter.

Note that if you suspend either the Launch or Terminate process types, it can prevent other process types from functioning properly.

To resume processes that have been suspended, use ResumeProcesses.

For more information, see Suspend and Resume Auto Scaling Processes in the Auto Scaling Developer Guide .

Parameters:
suspendProcessesRequest Container for the necessary parameters to execute the SuspendProcesses 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 SuspendProcesses 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<VoidsuspendProcessesAsync(SuspendProcessesRequest suspendProcessesRequest,
            AsyncHandler<SuspendProcessesRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Creates or updates tags for the specified Auto Scaling group.

A tag is defined by its resource ID, resource type, key, value, and propagate flag. The value and the propagate flag are optional parameters. The only supported resource type is auto-scaling-group , and the resource ID must be the name of the group. The PropagateAtLaunch flag determines whether the tag is added to instances launched in the group. Valid values are true or false .

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

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

Parameters:
createOrUpdateTagsRequest Container for the necessary parameters to execute the CreateOrUpdateTags operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the CreateOrUpdateTags 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<VoidcreateOrUpdateTagsAsync(CreateOrUpdateTagsRequest createOrUpdateTagsRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Creates or updates tags for the specified Auto Scaling group.

A tag is defined by its resource ID, resource type, key, value, and propagate flag. The value and the propagate flag are optional parameters. The only supported resource type is auto-scaling-group , and the resource ID must be the name of the group. The PropagateAtLaunch flag determines whether the tag is added to instances launched in the group. Valid values are true or false .

When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.

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

Parameters:
createOrUpdateTagsRequest Container for the necessary parameters to execute the CreateOrUpdateTags 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 CreateOrUpdateTags 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<VoidcreateOrUpdateTagsAsync(CreateOrUpdateTagsRequest createOrUpdateTagsRequest,
            AsyncHandler<CreateOrUpdateTagsRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Describes the load balancers for the specified Auto Scaling group.

Parameters:
describeLoadBalancersRequest Container for the necessary parameters to execute the DescribeLoadBalancers operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeLoadBalancers 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;

    

Describes the load balancers for the specified Auto Scaling group.

Parameters:
describeLoadBalancersRequest Container for the necessary parameters to execute the DescribeLoadBalancers 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 DescribeLoadBalancers 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;

    

Attaches one or more load balancers to the specified Auto Scaling group.

To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.

For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide .

Parameters:
attachLoadBalancersRequest Container for the necessary parameters to execute the AttachLoadBalancers operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the AttachLoadBalancers 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;

    

Attaches one or more load balancers to the specified Auto Scaling group.

To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.

For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide .

Parameters:
attachLoadBalancersRequest Container for the necessary parameters to execute the AttachLoadBalancers 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 AttachLoadBalancers 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;

    

Removes one or more instances from the specified Auto Scaling group. After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.

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

Parameters:
detachInstancesRequest Container for the necessary parameters to execute the DetachInstances operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DetachInstances 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;

    

Removes one or more instances from the specified Auto Scaling group. After the instances are detached, you can manage them independently from the rest of the Auto Scaling group.

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

Parameters:
detachInstancesRequest Container for the necessary parameters to execute the DetachInstances 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 DetachInstances 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.
            AsyncHandler<DetachInstancesRequestDetachInstancesResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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

Parameters:
describeAutoScalingInstancesRequest Container for the necessary parameters to execute the DescribeAutoScalingInstances operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeAutoScalingInstances 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;

    

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

Parameters:
describeAutoScalingInstancesRequest Container for the necessary parameters to execute the DescribeAutoScalingInstances 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 DescribeAutoScalingInstances 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;

    

Creates a launch configuration.

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

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

Parameters:
createLaunchConfigurationRequest Container for the necessary parameters to execute the CreateLaunchConfiguration operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the CreateLaunchConfiguration 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<VoidcreateLaunchConfigurationAsync(CreateLaunchConfigurationRequest createLaunchConfigurationRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Creates a launch configuration.

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

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

Parameters:
createLaunchConfigurationRequest Container for the necessary parameters to execute the CreateLaunchConfiguration 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 CreateLaunchConfiguration 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<VoidcreateLaunchConfigurationAsync(CreateLaunchConfigurationRequest createLaunchConfigurationRequest,
            AsyncHandler<CreateLaunchConfigurationRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Moves the specified instances into Standby mode.

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

Parameters:
enterStandbyRequest Container for the necessary parameters to execute the EnterStandby operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the EnterStandby 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<EnterStandbyResultenterStandbyAsync(EnterStandbyRequest enterStandbyRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Moves the specified instances into Standby mode.

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

Parameters:
enterStandbyRequest Container for the necessary parameters to execute the EnterStandby 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 EnterStandby 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<EnterStandbyResultenterStandbyAsync(EnterStandbyRequest enterStandbyRequest,
            AsyncHandler<EnterStandbyRequestEnterStandbyResultasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Describes the available types of lifecycle hooks.

Parameters:
describeLifecycleHookTypesRequest Container for the necessary parameters to execute the DescribeLifecycleHookTypes operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeLifecycleHookTypes 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;

    

Describes the available types of lifecycle hooks.

Parameters:
describeLifecycleHookTypesRequest Container for the necessary parameters to execute the DescribeLifecycleHookTypes 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 DescribeLifecycleHookTypes 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;

    

Deletes the specified Auto Scaling group.

The group must have no instances and no scaling activities in progress.

To remove all instances before calling DeleteAutoScalingGroup , call UpdateAutoScalingGroup to set the minimum and maximum size of the Auto Scaling group to zero.

Parameters:
deleteAutoScalingGroupRequest Container for the necessary parameters to execute the DeleteAutoScalingGroup operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DeleteAutoScalingGroup 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<VoiddeleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Deletes the specified Auto Scaling group.

The group must have no instances and no scaling activities in progress.

To remove all instances before calling DeleteAutoScalingGroup , call UpdateAutoScalingGroup to set the minimum and maximum size of the Auto Scaling group to zero.

Parameters:
deleteAutoScalingGroupRequest Container for the necessary parameters to execute the DeleteAutoScalingGroup 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 DeleteAutoScalingGroup 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<VoiddeleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest,
            AsyncHandler<DeleteAutoScalingGroupRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

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

Parameters:
disableMetricsCollectionRequest Container for the necessary parameters to execute the DisableMetricsCollection operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DisableMetricsCollection 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<VoiddisableMetricsCollectionAsync(DisableMetricsCollectionRequest disableMetricsCollectionRequest
            throws AmazonServiceExceptionAmazonClientException;

    

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

Parameters:
disableMetricsCollectionRequest Container for the necessary parameters to execute the DisableMetricsCollection 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 DisableMetricsCollection 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<VoiddisableMetricsCollectionAsync(DisableMetricsCollectionRequest disableMetricsCollectionRequest,
            AsyncHandler<DisableMetricsCollectionRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Updates the configuration for the specified Auto Scaling group.

To update an Auto Scaling group with a launch configuration with InstanceMonitoring set to False , you must first disable the collection of group metrics. Otherwise, you will get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.

The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.

Note the following:

  • If you specify a new value for MinSize without specifying a value for DesiredCapacity , and the new MinSize is larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value of MinSize .

  • If you specify a new value for MaxSize without specifying a value for DesiredCapacity , and the new MaxSize is smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value of MaxSize .

  • All other optional parameters are left unchanged if not specified.

Parameters:
updateAutoScalingGroupRequest Container for the necessary parameters to execute the UpdateAutoScalingGroup operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the UpdateAutoScalingGroup 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<VoidupdateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Updates the configuration for the specified Auto Scaling group.

To update an Auto Scaling group with a launch configuration with InstanceMonitoring set to False , you must first disable the collection of group metrics. Otherwise, you will get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.

The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.

Note the following:

  • If you specify a new value for MinSize without specifying a value for DesiredCapacity , and the new MinSize is larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value of MinSize .

  • If you specify a new value for MaxSize without specifying a value for DesiredCapacity , and the new MaxSize is smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value of MaxSize .

  • All other optional parameters are left unchanged if not specified.

Parameters:
updateAutoScalingGroupRequest Container for the necessary parameters to execute the UpdateAutoScalingGroup 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 UpdateAutoScalingGroup 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<VoidupdateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest,
            AsyncHandler<UpdateAutoScalingGroupRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Describes one or more launch configurations. If you omit the list of names, then the call describes all launch configurations.

Parameters:
describeLaunchConfigurationsRequest Container for the necessary parameters to execute the DescribeLaunchConfigurations operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeLaunchConfigurations 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;

    

Describes one or more launch configurations. If you omit the list of names, then the call describes all launch configurations.

Parameters:
describeLaunchConfigurationsRequest Container for the necessary parameters to execute the DescribeLaunchConfigurations 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 DescribeLaunchConfigurations 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;

    

Describes the policy adjustment types for use with PutScalingPolicy.

Parameters:
describeAdjustmentTypesRequest Container for the necessary parameters to execute the DescribeAdjustmentTypes operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeAdjustmentTypes 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;

    

Describes the policy adjustment types for use with PutScalingPolicy.

Parameters:
describeAdjustmentTypesRequest Container for the necessary parameters to execute the DescribeAdjustmentTypes 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 DescribeAdjustmentTypes 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;

    

Describes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have already run, use DescribeScalingActivities.

Parameters:
describeScheduledActionsRequest Container for the necessary parameters to execute the DescribeScheduledActions operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeScheduledActions 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;

    

Describes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have already run, use DescribeScalingActivities.

Parameters:
describeScheduledActionsRequest Container for the necessary parameters to execute the DescribeScheduledActions 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 DescribeScheduledActions 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;

    

Records a heartbeat for the lifecycle action associated with a specific token. This extends the timeout by the length of time defined by the HeartbeatTimeout parameter of PutLifecycleHook.

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:
recordLifecycleActionHeartbeatRequest Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the RecordLifecycleActionHeartbeat 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;

    

Records a heartbeat for the lifecycle action associated with a specific token. This extends the timeout by the length of time defined by the HeartbeatTimeout parameter of PutLifecycleHook.

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:
recordLifecycleActionHeartbeatRequest Container for the necessary parameters to execute the RecordLifecycleActionHeartbeat 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 RecordLifecycleActionHeartbeat 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;

    

Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.

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

Parameters:
putScheduledUpdateGroupActionRequest Container for the necessary parameters to execute the PutScheduledUpdateGroupAction operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the PutScheduledUpdateGroupAction 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<VoidputScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest putScheduledUpdateGroupActionRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Creates or updates a scheduled scaling action for an Auto Scaling group. When updating a scheduled scaling action, if you leave a parameter unspecified, the corresponding value remains unchanged in the affected Auto Scaling group.

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

Parameters:
putScheduledUpdateGroupActionRequest Container for the necessary parameters to execute the PutScheduledUpdateGroupAction 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 PutScheduledUpdateGroupAction 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<VoidputScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest putScheduledUpdateGroupActionRequest,
            AsyncHandler<PutScheduledUpdateGroupActionRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Describes the available CloudWatch metrics for Auto Scaling.

Note that the GroupStandbyInstances metric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.

Parameters:
describeMetricCollectionTypesRequest Container for the necessary parameters to execute the DescribeMetricCollectionTypes operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the DescribeMetricCollectionTypes 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;

    

Describes the available CloudWatch metrics for Auto Scaling.

Note that the GroupStandbyInstances metric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.

Parameters:
describeMetricCollectionTypesRequest Container for the necessary parameters to execute the DescribeMetricCollectionTypes 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 DescribeMetricCollectionTypes 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;

    

Sets the size of the specified Auto Scaling group.

For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling Developer Guide .

Parameters:
setDesiredCapacityRequest Container for the necessary parameters to execute the SetDesiredCapacity operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the SetDesiredCapacity 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<VoidsetDesiredCapacityAsync(SetDesiredCapacityRequest setDesiredCapacityRequest
            throws AmazonServiceExceptionAmazonClientException;

    

Sets the size of the specified Auto Scaling group.

For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling Developer Guide .

Parameters:
setDesiredCapacityRequest Container for the necessary parameters to execute the SetDesiredCapacity 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 SetDesiredCapacity 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<VoidsetDesiredCapacityAsync(SetDesiredCapacityRequest setDesiredCapacityRequest,
            AsyncHandler<SetDesiredCapacityRequestVoidasyncHandler)
                    throws AmazonServiceExceptionAmazonClientException;

    

Terminates the specified instance and optionally adjusts the desired group size.

This call simply makes a termination request. The instances is not terminated immediately.

Parameters:
terminateInstanceInAutoScalingGroupRequest Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup operation on AmazonAutoScaling.
Returns:
A Java Future object containing the response from the TerminateInstanceInAutoScalingGroup 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;

    

Terminates the specified instance and optionally adjusts the desired group size.

This call simply makes a termination request. The instances is not terminated immediately.

Parameters:
terminateInstanceInAutoScalingGroupRequest Container for the necessary parameters to execute the TerminateInstanceInAutoScalingGroup 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 TerminateInstanceInAutoScalingGroup 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;
}
        
New to GrepCode? Check out our FAQ X