public class AmazonAutoScalingAsyncClient extends AmazonAutoScalingClient implements AmazonAutoScalingAsync
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.
exceptionUnmarshallersclient, clientConfiguration, endpoint, LOGGING_AWS_REQUEST_METRIC, requestHandler2s, timeOffset| Constructor and Description |
|---|
AmazonAutoScalingAsyncClient()
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling.
|
AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling using the specified AWS account credentials.
|
AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling using the specified AWS account credentials,
executor service, and client configuration options.
|
AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling using the specified AWS account credentials
and executor service.
|
AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling using the specified AWS account credentials provider.
|
AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling using the specified AWS account credentials
provider and client configuration options.
|
AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling using the specified AWS account credentials
provider, executor service, and client configuration options.
|
AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling using the specified AWS account credentials provider
and executor service.
|
AmazonAutoScalingAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on
AmazonAutoScaling.
|
attachInstances, completeLifecycleAction, createAutoScalingGroup, createLaunchConfiguration, createOrUpdateTags, deleteAutoScalingGroup, deleteLaunchConfiguration, deleteLifecycleHook, deleteNotificationConfiguration, deletePolicy, deleteScheduledAction, deleteTags, describeAccountLimits, describeAccountLimits, describeAdjustmentTypes, describeAdjustmentTypes, describeAutoScalingGroups, describeAutoScalingGroups, describeAutoScalingInstances, describeAutoScalingInstances, describeAutoScalingNotificationTypes, describeAutoScalingNotificationTypes, describeLaunchConfigurations, describeLaunchConfigurations, describeLifecycleHooks, describeLifecycleHookTypes, describeLifecycleHookTypes, describeMetricCollectionTypes, describeMetricCollectionTypes, describeNotificationConfigurations, describeNotificationConfigurations, describePolicies, describePolicies, describeScalingActivities, describeScalingActivities, describeScalingProcessTypes, describeScalingProcessTypes, describeScheduledActions, describeScheduledActions, describeTags, describeTags, describeTerminationPolicyTypes, describeTerminationPolicyTypes, detachInstances, disableMetricsCollection, enableMetricsCollection, enterStandby, executePolicy, exitStandby, getCachedResponseMetadata, putLifecycleHook, putNotificationConfiguration, putScalingPolicy, putScheduledUpdateGroupAction, recordLifecycleActionHeartbeat, resumeProcesses, setDesiredCapacity, setInstanceHealth, suspendProcesses, terminateInstanceInAutoScalingGroup, updateAutoScalingGroupaddRequestHandler, addRequestHandler, configSigner, configSigner, convertToHttpRequest, createExecutionContext, createExecutionContext, createExecutionContext, endClientExecution, endClientExecution, findRequestMetricCollector, getRequestMetricsCollector, getServiceAbbreviation, getServiceName, getServiceNameIntern, getSigner, getSignerByURI, getSignerRegionOverride, getTimeOffset, isProfilingEnabled, isRequestMetricsEnabled, removeRequestHandler, removeRequestHandler, requestMetricCollector, setConfiguration, setEndpoint, setEndpoint, setRegion, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitattachInstances, completeLifecycleAction, createAutoScalingGroup, createLaunchConfiguration, createOrUpdateTags, deleteAutoScalingGroup, deleteLaunchConfiguration, deleteLifecycleHook, deleteNotificationConfiguration, deletePolicy, deleteScheduledAction, deleteTags, describeAccountLimits, describeAccountLimits, describeAdjustmentTypes, describeAdjustmentTypes, describeAutoScalingGroups, describeAutoScalingGroups, describeAutoScalingInstances, describeAutoScalingInstances, describeAutoScalingNotificationTypes, describeAutoScalingNotificationTypes, describeLaunchConfigurations, describeLaunchConfigurations, describeLifecycleHooks, describeLifecycleHookTypes, describeLifecycleHookTypes, describeMetricCollectionTypes, describeMetricCollectionTypes, describeNotificationConfigurations, describeNotificationConfigurations, describePolicies, describePolicies, describeScalingActivities, describeScalingActivities, describeScalingProcessTypes, describeScalingProcessTypes, describeScheduledActions, describeScheduledActions, describeTags, describeTags, describeTerminationPolicyTypes, describeTerminationPolicyTypes, detachInstances, disableMetricsCollection, enableMetricsCollection, enterStandby, executePolicy, exitStandby, getCachedResponseMetadata, putLifecycleHook, putNotificationConfiguration, putScalingPolicy, putScheduledUpdateGroupAction, recordLifecycleActionHeartbeat, resumeProcesses, setDesiredCapacity, setEndpoint, setInstanceHealth, setRegion, suspendProcesses, terminateInstanceInAutoScalingGroup, updateAutoScalingGrouppublic AmazonAutoScalingAsyncClient()
All service calls made using this new client object are blocking, and will not return until the service call completes.
DefaultAWSCredentialsProviderChainpublic AmazonAutoScalingAsyncClient(ClientConfiguration clientConfiguration)
All service calls made using this new client object are blocking, and will not return until the service call completes.
clientConfiguration - The client configuration options controlling how this
client connects to AmazonAutoScaling
(ex: proxy settings, retry counts, etc.).DefaultAWSCredentialsProviderChainpublic AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.public AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.executorService - The executor service by which all asynchronous requests will
be executed.public AmazonAutoScalingAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentials - The AWS credentials (access key ID and secret key) to use
when authenticating with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy
settings, etc).executorService - The executor service by which all asynchronous requests will
be executed.public AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.public AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.executorService - The executor service by which all asynchronous requests will
be executed.public AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy
settings, etc).public AmazonAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
All calls made using this new client object are non-blocking, and will immediately return a Java Future object that the caller can later check to see if the service call has actually completed.
awsCredentialsProvider - The AWS credentials provider which will provide credentials
to authenticate requests with AWS services.clientConfiguration - Client configuration options (ex: max retry limit, proxy
settings, etc).executorService - The executor service by which all asynchronous requests will
be executed.public ExecutorService getExecutorService()
public void shutdown()
shutdown in interface AmazonAutoScalingshutdown in class AmazonWebServiceClientpublic Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest describeAccountLimitsRequest) throws AmazonServiceException, AmazonClientException
Describes the current Auto Scaling resource limits for your AWS account.
For information about requesting an increase in these limits, see AWS Service Limits .
describeAccountLimitsAsync in interface AmazonAutoScalingAsyncdescribeAccountLimitsRequest - Container for the necessary
parameters to execute the DescribeAccountLimits operation on
AmazonAutoScaling.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.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<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest describeAccountLimitsRequest, AsyncHandler<DescribeAccountLimitsRequest,DescribeAccountLimitsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes the current Auto Scaling resource limits for your AWS account.
For information about requesting an increase in these limits, see AWS Service Limits .
describeAccountLimitsAsync in interface AmazonAutoScalingAsyncdescribeAccountLimitsRequest - 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.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.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<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest) throws AmazonServiceException, AmazonClientException
Describes one or more Auto Scaling groups. If a list of names is not provided, the call describes all Auto Scaling groups.
You can specify a maximum number of items to be returned with a
single call. If there are more items to return, the call returns a
token. To get the next set of items, repeat the call with the returned
token in the NextToken parameter.
describeAutoScalingGroupsAsync in interface AmazonAutoScalingAsyncdescribeAutoScalingGroupsRequest - Container for the necessary
parameters to execute the DescribeAutoScalingGroups operation on
AmazonAutoScaling.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.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<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest describeAutoScalingGroupsRequest, AsyncHandler<DescribeAutoScalingGroupsRequest,DescribeAutoScalingGroupsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes one or more Auto Scaling groups. If a list of names is not provided, the call describes all Auto Scaling groups.
You can specify a maximum number of items to be returned with a
single call. If there are more items to return, the call returns a
token. To get the next set of items, repeat the call with the returned
token in the NextToken parameter.
describeAutoScalingGroupsAsync in interface AmazonAutoScalingAsyncdescribeAutoScalingGroupsRequest - 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.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.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<Void> enableMetricsCollectionAsync(EnableMetricsCollectionRequest enableMetricsCollectionRequest) throws AmazonServiceException, AmazonClientException
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 .
enableMetricsCollectionAsync in interface AmazonAutoScalingAsyncenableMetricsCollectionRequest - Container for the necessary
parameters to execute the EnableMetricsCollection operation on
AmazonAutoScaling.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.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<Void> enableMetricsCollectionAsync(EnableMetricsCollectionRequest enableMetricsCollectionRequest, AsyncHandler<EnableMetricsCollectionRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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 .
enableMetricsCollectionAsync in interface AmazonAutoScalingAsyncenableMetricsCollectionRequest - 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.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.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<Void> resumeProcessesAsync(ResumeProcessesRequest resumeProcessesRequest) throws AmazonServiceException, AmazonClientException
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 .
resumeProcessesAsync in interface AmazonAutoScalingAsyncresumeProcessesRequest - Container for the necessary parameters
to execute the ResumeProcesses operation on AmazonAutoScaling.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.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<Void> resumeProcessesAsync(ResumeProcessesRequest resumeProcessesRequest, AsyncHandler<ResumeProcessesRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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 .
resumeProcessesAsync in interface AmazonAutoScalingAsyncresumeProcessesRequest - 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.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.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<DescribeLifecycleHooksResult> describeLifecycleHooksAsync(DescribeLifecycleHooksRequest describeLifecycleHooksRequest) throws AmazonServiceException, AmazonClientException
Describes the lifecycle hooks for the specified Auto Scaling group.
describeLifecycleHooksAsync in interface AmazonAutoScalingAsyncdescribeLifecycleHooksRequest - Container for the necessary
parameters to execute the DescribeLifecycleHooks operation on
AmazonAutoScaling.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.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<DescribeLifecycleHooksResult> describeLifecycleHooksAsync(DescribeLifecycleHooksRequest describeLifecycleHooksRequest, AsyncHandler<DescribeLifecycleHooksRequest,DescribeLifecycleHooksResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes the lifecycle hooks for the specified Auto Scaling group.
describeLifecycleHooksAsync in interface AmazonAutoScalingAsyncdescribeLifecycleHooksRequest - 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.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.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<DescribePoliciesResult> describePoliciesAsync(DescribePoliciesRequest describePoliciesRequest) throws AmazonServiceException, AmazonClientException
Describes the policies for the specified Auto Scaling group.
You can specify a maximum number of items to be returned with a
single call. If there are more items to return, the call returns a
token. To get the next set of items, repeat the call with the returned
token in the NextToken parameter.
describePoliciesAsync in interface AmazonAutoScalingAsyncdescribePoliciesRequest - Container for the necessary parameters
to execute the DescribePolicies operation on AmazonAutoScaling.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.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<DescribePoliciesResult> describePoliciesAsync(DescribePoliciesRequest describePoliciesRequest, AsyncHandler<DescribePoliciesRequest,DescribePoliciesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes the policies for the specified Auto Scaling group.
You can specify a maximum number of items to be returned with a
single call. If there are more items to return, the call returns a
token. To get the next set of items, repeat the call with the returned
token in the NextToken parameter.
describePoliciesAsync in interface AmazonAutoScalingAsyncdescribePoliciesRequest - 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.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.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<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest describeScalingProcessTypesRequest) throws AmazonServiceException, AmazonClientException
Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions.
describeScalingProcessTypesAsync in interface AmazonAutoScalingAsyncdescribeScalingProcessTypesRequest - Container for the necessary
parameters to execute the DescribeScalingProcessTypes operation on
AmazonAutoScaling.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.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<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest describeScalingProcessTypesRequest, AsyncHandler<DescribeScalingProcessTypesRequest,DescribeScalingProcessTypesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns scaling process types for use in the ResumeProcesses and SuspendProcesses actions.
describeScalingProcessTypesAsync in interface AmazonAutoScalingAsyncdescribeScalingProcessTypesRequest - 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.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.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<Void> deleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest) throws AmazonServiceException, AmazonClientException
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.
deleteLaunchConfigurationAsync in interface AmazonAutoScalingAsyncdeleteLaunchConfigurationRequest - Container for the necessary
parameters to execute the DeleteLaunchConfiguration operation on
AmazonAutoScaling.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.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<Void> deleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest deleteLaunchConfigurationRequest, AsyncHandler<DeleteLaunchConfigurationRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
deleteLaunchConfigurationAsync in interface AmazonAutoScalingAsyncdeleteLaunchConfigurationRequest - 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.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.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<Void> createAutoScalingGroupAsync(CreateAutoScalingGroupRequest createAutoScalingGroupRequest) throws AmazonServiceException, AmazonClientException
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.
createAutoScalingGroupAsync in interface AmazonAutoScalingAsynccreateAutoScalingGroupRequest - Container for the necessary
parameters to execute the CreateAutoScalingGroup operation on
AmazonAutoScaling.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.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<Void> createAutoScalingGroupAsync(CreateAutoScalingGroupRequest createAutoScalingGroupRequest, AsyncHandler<CreateAutoScalingGroupRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
createAutoScalingGroupAsync in interface AmazonAutoScalingAsynccreateAutoScalingGroupRequest - 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.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.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<Void> attachInstancesAsync(AttachInstancesRequest attachInstancesRequest) throws AmazonServiceException, AmazonClientException
Attaches one or more EC2 instances to the specified Auto Scaling group.
For more information, see Attach Amazon EC2 Instances to Your Existing Auto Scaling Group in the Auto Scaling Developer Guide .
attachInstancesAsync in interface AmazonAutoScalingAsyncattachInstancesRequest - Container for the necessary parameters
to execute the AttachInstances operation on AmazonAutoScaling.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.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<Void> attachInstancesAsync(AttachInstancesRequest attachInstancesRequest, AsyncHandler<AttachInstancesRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Attaches one or more EC2 instances to the specified Auto Scaling group.
For more information, see Attach Amazon EC2 Instances to Your Existing Auto Scaling Group in the Auto Scaling Developer Guide .
attachInstancesAsync in interface AmazonAutoScalingAsyncattachInstancesRequest - 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.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.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<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest describeScalingActivitiesRequest) throws AmazonServiceException, AmazonClientException
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.
You can specify a maximum number of items to be returned with a
single call. If there are more items to return, the call returns a
token. To get the next set of items, repeat the call with the returned
token in the NextToken parameter.
describeScalingActivitiesAsync in interface AmazonAutoScalingAsyncdescribeScalingActivitiesRequest - Container for the necessary
parameters to execute the DescribeScalingActivities operation on
AmazonAutoScaling.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.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<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest describeScalingActivitiesRequest, AsyncHandler<DescribeScalingActivitiesRequest,DescribeScalingActivitiesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
You can specify a maximum number of items to be returned with a
single call. If there are more items to return, the call returns a
token. To get the next set of items, repeat the call with the returned
token in the NextToken parameter.
describeScalingActivitiesAsync in interface AmazonAutoScalingAsyncdescribeScalingActivitiesRequest - 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.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.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<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest describeNotificationConfigurationsRequest) throws AmazonServiceException, AmazonClientException
Describes the notification actions associated with the specified Auto Scaling group.
describeNotificationConfigurationsAsync in interface AmazonAutoScalingAsyncdescribeNotificationConfigurationsRequest - Container for the
necessary parameters to execute the DescribeNotificationConfigurations
operation on AmazonAutoScaling.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.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<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest describeNotificationConfigurationsRequest, AsyncHandler<DescribeNotificationConfigurationsRequest,DescribeNotificationConfigurationsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes the notification actions associated with the specified Auto Scaling group.
describeNotificationConfigurationsAsync in interface AmazonAutoScalingAsyncdescribeNotificationConfigurationsRequest - 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.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.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<DeleteLifecycleHookResult> deleteLifecycleHookAsync(DeleteLifecycleHookRequest deleteLifecycleHookRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified lifecycle hook.
If there are any outstanding lifecycle actions, they are completed
first ( ABANDON for launching instances,
CONTINUE for terminating instances).
deleteLifecycleHookAsync in interface AmazonAutoScalingAsyncdeleteLifecycleHookRequest - Container for the necessary
parameters to execute the DeleteLifecycleHook operation on
AmazonAutoScaling.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.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<DeleteLifecycleHookResult> deleteLifecycleHookAsync(DeleteLifecycleHookRequest deleteLifecycleHookRequest, AsyncHandler<DeleteLifecycleHookRequest,DeleteLifecycleHookResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified lifecycle hook.
If there are any outstanding lifecycle actions, they are completed
first ( ABANDON for launching instances,
CONTINUE for terminating instances).
deleteLifecycleHookAsync in interface AmazonAutoScalingAsyncdeleteLifecycleHookRequest - 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.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.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<PutLifecycleHookResult> putLifecycleHookAsync(PutLifecycleHookRequest putLifecycleHookRequest) throws AmazonServiceException, AmazonClientException
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:
For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .
putLifecycleHookAsync in interface AmazonAutoScalingAsyncputLifecycleHookRequest - Container for the necessary parameters
to execute the PutLifecycleHook operation on AmazonAutoScaling.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.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<PutLifecycleHookResult> putLifecycleHookAsync(PutLifecycleHookRequest putLifecycleHookRequest, AsyncHandler<PutLifecycleHookRequest,PutLifecycleHookResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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:
For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .
putLifecycleHookAsync in interface AmazonAutoScalingAsyncputLifecycleHookRequest - 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.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.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<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest describeTerminationPolicyTypesRequest) throws AmazonServiceException, AmazonClientException
Lists the termination policies supported by Auto Scaling.
describeTerminationPolicyTypesAsync in interface AmazonAutoScalingAsyncdescribeTerminationPolicyTypesRequest - Container for the
necessary parameters to execute the DescribeTerminationPolicyTypes
operation on AmazonAutoScaling.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.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<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest describeTerminationPolicyTypesRequest, AsyncHandler<DescribeTerminationPolicyTypesRequest,DescribeTerminationPolicyTypesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the termination policies supported by Auto Scaling.
describeTerminationPolicyTypesAsync in interface AmazonAutoScalingAsyncdescribeTerminationPolicyTypesRequest - 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.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.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<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest describeTagsRequest) throws AmazonServiceException, AmazonClientException
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.
describeTagsAsync in interface AmazonAutoScalingAsyncdescribeTagsRequest - Container for the necessary parameters to
execute the DescribeTags operation on AmazonAutoScaling.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.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<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest describeTagsRequest, AsyncHandler<DescribeTagsRequest,DescribeTagsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
describeTagsAsync in interface AmazonAutoScalingAsyncdescribeTagsRequest - 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.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.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<Void> deleteTagsAsync(DeleteTagsRequest deleteTagsRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified tags.
deleteTagsAsync in interface AmazonAutoScalingAsyncdeleteTagsRequest - Container for the necessary parameters to
execute the DeleteTags operation on AmazonAutoScaling.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.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<Void> deleteTagsAsync(DeleteTagsRequest deleteTagsRequest, AsyncHandler<DeleteTagsRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified tags.
deleteTagsAsync in interface AmazonAutoScalingAsyncdeleteTagsRequest - 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.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.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<Void> executePolicyAsync(ExecutePolicyRequest executePolicyRequest) throws AmazonServiceException, AmazonClientException
Executes the specified policy.
executePolicyAsync in interface AmazonAutoScalingAsyncexecutePolicyRequest - Container for the necessary parameters to
execute the ExecutePolicy operation on AmazonAutoScaling.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.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<Void> executePolicyAsync(ExecutePolicyRequest executePolicyRequest, AsyncHandler<ExecutePolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Executes the specified policy.
executePolicyAsync in interface AmazonAutoScalingAsyncexecutePolicyRequest - 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.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.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<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest putScalingPolicyRequest) throws AmazonServiceException, AmazonClientException
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.
putScalingPolicyAsync in interface AmazonAutoScalingAsyncputScalingPolicyRequest - Container for the necessary parameters
to execute the PutScalingPolicy operation on AmazonAutoScaling.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.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<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest putScalingPolicyRequest, AsyncHandler<PutScalingPolicyRequest,PutScalingPolicyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
putScalingPolicyAsync in interface AmazonAutoScalingAsyncputScalingPolicyRequest - 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.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.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<Void> putNotificationConfigurationAsync(PutNotificationConfigurationRequest putNotificationConfigurationRequest) throws AmazonServiceException, AmazonClientException
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.
putNotificationConfigurationAsync in interface AmazonAutoScalingAsyncputNotificationConfigurationRequest - Container for the necessary
parameters to execute the PutNotificationConfiguration operation on
AmazonAutoScaling.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.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<Void> putNotificationConfigurationAsync(PutNotificationConfigurationRequest putNotificationConfigurationRequest, AsyncHandler<PutNotificationConfigurationRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
putNotificationConfigurationAsync in interface AmazonAutoScalingAsyncputNotificationConfigurationRequest - 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.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.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<ExitStandbyResult> exitStandbyAsync(ExitStandbyRequest exitStandbyRequest) throws AmazonServiceException, AmazonClientException
Moves the specified instances out of Standby mode.
For more information, see Auto Scaling InService State in the Auto Scaling Developer Guide .
exitStandbyAsync in interface AmazonAutoScalingAsyncexitStandbyRequest - Container for the necessary parameters to
execute the ExitStandby operation on AmazonAutoScaling.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.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<ExitStandbyResult> exitStandbyAsync(ExitStandbyRequest exitStandbyRequest, AsyncHandler<ExitStandbyRequest,ExitStandbyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Moves the specified instances out of Standby mode.
For more information, see Auto Scaling InService State in the Auto Scaling Developer Guide .
exitStandbyAsync in interface AmazonAutoScalingAsyncexitStandbyRequest - 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.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.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<Void> deletePolicyAsync(DeletePolicyRequest deletePolicyRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified Auto Scaling policy.
deletePolicyAsync in interface AmazonAutoScalingAsyncdeletePolicyRequest - Container for the necessary parameters to
execute the DeletePolicy operation on AmazonAutoScaling.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.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<Void> deletePolicyAsync(DeletePolicyRequest deletePolicyRequest, AsyncHandler<DeletePolicyRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified Auto Scaling policy.
deletePolicyAsync in interface AmazonAutoScalingAsyncdeletePolicyRequest - 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.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.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<CompleteLifecycleActionResult> completeLifecycleActionAsync(CompleteLifecycleActionRequest completeLifecycleActionRequest) throws AmazonServiceException, AmazonClientException
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:
For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .
completeLifecycleActionAsync in interface AmazonAutoScalingAsynccompleteLifecycleActionRequest - Container for the necessary
parameters to execute the CompleteLifecycleAction operation on
AmazonAutoScaling.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.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<CompleteLifecycleActionResult> completeLifecycleActionAsync(CompleteLifecycleActionRequest completeLifecycleActionRequest, AsyncHandler<CompleteLifecycleActionRequest,CompleteLifecycleActionResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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:
For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .
completeLifecycleActionAsync in interface AmazonAutoScalingAsynccompleteLifecycleActionRequest - 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.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.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<Void> deleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest deleteNotificationConfigurationRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified notification.
deleteNotificationConfigurationAsync in interface AmazonAutoScalingAsyncdeleteNotificationConfigurationRequest - Container for the
necessary parameters to execute the DeleteNotificationConfiguration
operation on AmazonAutoScaling.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.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<Void> deleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest deleteNotificationConfigurationRequest, AsyncHandler<DeleteNotificationConfigurationRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified notification.
deleteNotificationConfigurationAsync in interface AmazonAutoScalingAsyncdeleteNotificationConfigurationRequest - 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.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.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<Void> deleteScheduledActionAsync(DeleteScheduledActionRequest deleteScheduledActionRequest) throws AmazonServiceException, AmazonClientException
Deletes the specified scheduled action.
deleteScheduledActionAsync in interface AmazonAutoScalingAsyncdeleteScheduledActionRequest - Container for the necessary
parameters to execute the DeleteScheduledAction operation on
AmazonAutoScaling.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.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<Void> deleteScheduledActionAsync(DeleteScheduledActionRequest deleteScheduledActionRequest, AsyncHandler<DeleteScheduledActionRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Deletes the specified scheduled action.
deleteScheduledActionAsync in interface AmazonAutoScalingAsyncdeleteScheduledActionRequest - 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.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.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<Void> setInstanceHealthAsync(SetInstanceHealthRequest setInstanceHealthRequest) throws AmazonServiceException, AmazonClientException
Sets the health status of the specified instance.
For more information, see Health Checks in the Auto Scaling Developer Guide .
setInstanceHealthAsync in interface AmazonAutoScalingAsyncsetInstanceHealthRequest - Container for the necessary parameters
to execute the SetInstanceHealth operation on AmazonAutoScaling.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.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<Void> setInstanceHealthAsync(SetInstanceHealthRequest setInstanceHealthRequest, AsyncHandler<SetInstanceHealthRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Sets the health status of the specified instance.
For more information, see Health Checks in the Auto Scaling Developer Guide .
setInstanceHealthAsync in interface AmazonAutoScalingAsyncsetInstanceHealthRequest - 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.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.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<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest describeAutoScalingNotificationTypesRequest) throws AmazonServiceException, AmazonClientException
Lists the notification types that are supported by Auto Scaling.
describeAutoScalingNotificationTypesAsync in interface AmazonAutoScalingAsyncdescribeAutoScalingNotificationTypesRequest - Container for the
necessary parameters to execute the
DescribeAutoScalingNotificationTypes operation on AmazonAutoScaling.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.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<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest describeAutoScalingNotificationTypesRequest, AsyncHandler<DescribeAutoScalingNotificationTypesRequest,DescribeAutoScalingNotificationTypesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the notification types that are supported by Auto Scaling.
describeAutoScalingNotificationTypesAsync in interface AmazonAutoScalingAsyncdescribeAutoScalingNotificationTypesRequest - 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.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.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<Void> suspendProcessesAsync(SuspendProcessesRequest suspendProcessesRequest) throws AmazonServiceException, AmazonClientException
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 .
suspendProcessesAsync in interface AmazonAutoScalingAsyncsuspendProcessesRequest - Container for the necessary parameters
to execute the SuspendProcesses operation on AmazonAutoScaling.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.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<Void> suspendProcessesAsync(SuspendProcessesRequest suspendProcessesRequest, AsyncHandler<SuspendProcessesRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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 .
suspendProcessesAsync in interface AmazonAutoScalingAsyncsuspendProcessesRequest - 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.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.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<Void> createOrUpdateTagsAsync(CreateOrUpdateTagsRequest createOrUpdateTagsRequest) throws AmazonServiceException, AmazonClientException
Creates or updates tags for the specified Auto Scaling group.
NOTE: A tag's definition is composed of a resource ID, resource type, key and value, and the propagate flag. Value and the propagate flag are optional parameters. See the Request Parameters for more information.
For more information, see Add, Modify, or Remove Auto Scaling Group Tags in the Auto Scaling Developer Guide .
createOrUpdateTagsAsync in interface AmazonAutoScalingAsynccreateOrUpdateTagsRequest - Container for the necessary
parameters to execute the CreateOrUpdateTags operation on
AmazonAutoScaling.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.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<Void> createOrUpdateTagsAsync(CreateOrUpdateTagsRequest createOrUpdateTagsRequest, AsyncHandler<CreateOrUpdateTagsRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Creates or updates tags for the specified Auto Scaling group.
NOTE: A tag's definition is composed of a resource ID, resource type, key and value, and the propagate flag. Value and the propagate flag are optional parameters. See the Request Parameters for more information.
For more information, see Add, Modify, or Remove Auto Scaling Group Tags in the Auto Scaling Developer Guide .
createOrUpdateTagsAsync in interface AmazonAutoScalingAsynccreateOrUpdateTagsRequest - 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.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.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<DetachInstancesResult> detachInstancesAsync(DetachInstancesRequest detachInstancesRequest) throws AmazonServiceException, AmazonClientException
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 .
detachInstancesAsync in interface AmazonAutoScalingAsyncdetachInstancesRequest - Container for the necessary parameters
to execute the DetachInstances operation on AmazonAutoScaling.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.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<DetachInstancesResult> detachInstancesAsync(DetachInstancesRequest detachInstancesRequest, AsyncHandler<DetachInstancesRequest,DetachInstancesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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 .
detachInstancesAsync in interface AmazonAutoScalingAsyncdetachInstancesRequest - 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.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.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<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest describeAutoScalingInstancesRequest) throws AmazonServiceException, AmazonClientException
Describes one or more Auto Scaling instances. If a list is not provided, the call describes all instances.
You can describe up to a maximum of 50 instances with a single call.
By default, a call returns up to 20 instances. If there are more items
to return, the call returns a token. To get the next set of items,
repeat the call with the returned token in the NextToken
parameter.
describeAutoScalingInstancesAsync in interface AmazonAutoScalingAsyncdescribeAutoScalingInstancesRequest - Container for the necessary
parameters to execute the DescribeAutoScalingInstances operation on
AmazonAutoScaling.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.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<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest describeAutoScalingInstancesRequest, AsyncHandler<DescribeAutoScalingInstancesRequest,DescribeAutoScalingInstancesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes one or more Auto Scaling instances. If a list is not provided, the call describes all instances.
You can describe up to a maximum of 50 instances with a single call.
By default, a call returns up to 20 instances. If there are more items
to return, the call returns a token. To get the next set of items,
repeat the call with the returned token in the NextToken
parameter.
describeAutoScalingInstancesAsync in interface AmazonAutoScalingAsyncdescribeAutoScalingInstancesRequest - 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.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.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<Void> createLaunchConfigurationAsync(CreateLaunchConfigurationRequest createLaunchConfigurationRequest) throws AmazonServiceException, AmazonClientException
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.
createLaunchConfigurationAsync in interface AmazonAutoScalingAsynccreateLaunchConfigurationRequest - Container for the necessary
parameters to execute the CreateLaunchConfiguration operation on
AmazonAutoScaling.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.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<Void> createLaunchConfigurationAsync(CreateLaunchConfigurationRequest createLaunchConfigurationRequest, AsyncHandler<CreateLaunchConfigurationRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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.
createLaunchConfigurationAsync in interface AmazonAutoScalingAsynccreateLaunchConfigurationRequest - 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.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.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<EnterStandbyResult> enterStandbyAsync(EnterStandbyRequest enterStandbyRequest) throws AmazonServiceException, AmazonClientException
Moves the specified instances into Standby mode.
For more information, see Auto Scaling InService State in the Auto Scaling Developer Guide .
enterStandbyAsync in interface AmazonAutoScalingAsyncenterStandbyRequest - Container for the necessary parameters to
execute the EnterStandby operation on AmazonAutoScaling.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.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<EnterStandbyResult> enterStandbyAsync(EnterStandbyRequest enterStandbyRequest, AsyncHandler<EnterStandbyRequest,EnterStandbyResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Moves the specified instances into Standby mode.
For more information, see Auto Scaling InService State in the Auto Scaling Developer Guide .
enterStandbyAsync in interface AmazonAutoScalingAsyncenterStandbyRequest - 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.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.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<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest describeLifecycleHookTypesRequest) throws AmazonServiceException, AmazonClientException
Describes the available types of lifecycle hooks.
describeLifecycleHookTypesAsync in interface AmazonAutoScalingAsyncdescribeLifecycleHookTypesRequest - Container for the necessary
parameters to execute the DescribeLifecycleHookTypes operation on
AmazonAutoScaling.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.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<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest describeLifecycleHookTypesRequest, AsyncHandler<DescribeLifecycleHookTypesRequest,DescribeLifecycleHookTypesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes the available types of lifecycle hooks.
describeLifecycleHookTypesAsync in interface AmazonAutoScalingAsyncdescribeLifecycleHookTypesRequest - 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.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.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<Void> deleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest) throws AmazonServiceException, AmazonClientException
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, you can call UpdateAutoScalingGroup to set the minimum and maximum size of the AutoScalingGroup to zero.
deleteAutoScalingGroupAsync in interface AmazonAutoScalingAsyncdeleteAutoScalingGroupRequest - Container for the necessary
parameters to execute the DeleteAutoScalingGroup operation on
AmazonAutoScaling.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.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<Void> deleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest deleteAutoScalingGroupRequest, AsyncHandler<DeleteAutoScalingGroupRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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, you can call UpdateAutoScalingGroup to set the minimum and maximum size of the AutoScalingGroup to zero.
deleteAutoScalingGroupAsync in interface AmazonAutoScalingAsyncdeleteAutoScalingGroupRequest - 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.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.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<Void> disableMetricsCollectionAsync(DisableMetricsCollectionRequest disableMetricsCollectionRequest) throws AmazonServiceException, AmazonClientException
Disables monitoring of the specified metrics for the specified Auto Scaling group.
disableMetricsCollectionAsync in interface AmazonAutoScalingAsyncdisableMetricsCollectionRequest - Container for the necessary
parameters to execute the DisableMetricsCollection operation on
AmazonAutoScaling.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.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<Void> disableMetricsCollectionAsync(DisableMetricsCollectionRequest disableMetricsCollectionRequest, AsyncHandler<DisableMetricsCollectionRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Disables monitoring of the specified metrics for the specified Auto Scaling group.
disableMetricsCollectionAsync in interface AmazonAutoScalingAsyncdisableMetricsCollectionRequest - 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.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.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<Void> updateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest) throws AmazonServiceException, AmazonClientException
Updates the configuration for the specified AutoScalingGroup.
NOTE: To update an Auto Scaling group with a launch configuration that has the InstanceMonitoring flag set to False, you must first ensure that collection of group metrics is disabled. Otherwise, calls to UpdateAutoScalingGroup will fail. If you have previously enabled group metrics collection, you can disable collection of all group metrics by calling 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: If a new value is specified for MinSize without specifying the value for DesiredCapacity, and if the new MinSize is larger than the current size of the Auto Scaling group, there will be an implicit call to SetDesiredCapacity to set the group to the new MinSize. If a new value is specified for MaxSize without specifying the value for DesiredCapacity, and the new MaxSize is smaller than the current size of the Auto Scaling group, there will be an implicit call to SetDesiredCapacity to set the group to the new MaxSize. All other optional parameters are left unchanged if not passed in the request.
updateAutoScalingGroupAsync in interface AmazonAutoScalingAsyncupdateAutoScalingGroupRequest - Container for the necessary
parameters to execute the UpdateAutoScalingGroup operation on
AmazonAutoScaling.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.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<Void> updateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest updateAutoScalingGroupRequest, AsyncHandler<UpdateAutoScalingGroupRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Updates the configuration for the specified AutoScalingGroup.
NOTE: To update an Auto Scaling group with a launch configuration that has the InstanceMonitoring flag set to False, you must first ensure that collection of group metrics is disabled. Otherwise, calls to UpdateAutoScalingGroup will fail. If you have previously enabled group metrics collection, you can disable collection of all group metrics by calling 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: If a new value is specified for MinSize without specifying the value for DesiredCapacity, and if the new MinSize is larger than the current size of the Auto Scaling group, there will be an implicit call to SetDesiredCapacity to set the group to the new MinSize. If a new value is specified for MaxSize without specifying the value for DesiredCapacity, and the new MaxSize is smaller than the current size of the Auto Scaling group, there will be an implicit call to SetDesiredCapacity to set the group to the new MaxSize. All other optional parameters are left unchanged if not passed in the request.
updateAutoScalingGroupAsync in interface AmazonAutoScalingAsyncupdateAutoScalingGroupRequest - 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.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.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<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest) throws AmazonServiceException, AmazonClientException
Describes one or more launch configurations. If you omit the list of names, then the call describes all launch configurations.
You can specify a maximum number of items to be returned with a
single call. If there are more items to return, the call returns a
token. To get the next set of items, repeat the call with the returned
token in the NextToken parameter.
describeLaunchConfigurationsAsync in interface AmazonAutoScalingAsyncdescribeLaunchConfigurationsRequest - Container for the necessary
parameters to execute the DescribeLaunchConfigurations operation on
AmazonAutoScaling.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.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<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest describeLaunchConfigurationsRequest, AsyncHandler<DescribeLaunchConfigurationsRequest,DescribeLaunchConfigurationsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Describes one or more launch configurations. If you omit the list of names, then the call describes all launch configurations.
You can specify a maximum number of items to be returned with a
single call. If there are more items to return, the call returns a
token. To get the next set of items, repeat the call with the returned
token in the NextToken parameter.
describeLaunchConfigurationsAsync in interface AmazonAutoScalingAsyncdescribeLaunchConfigurationsRequest - 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.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.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<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest) throws AmazonServiceException, AmazonClientException
Lists the policy adjustment types for use with PutScalingPolicy.
describeAdjustmentTypesAsync in interface AmazonAutoScalingAsyncdescribeAdjustmentTypesRequest - Container for the necessary
parameters to execute the DescribeAdjustmentTypes operation on
AmazonAutoScaling.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.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<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest describeAdjustmentTypesRequest, AsyncHandler<DescribeAdjustmentTypesRequest,DescribeAdjustmentTypesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the policy adjustment types for use with PutScalingPolicy.
describeAdjustmentTypesAsync in interface AmazonAutoScalingAsyncdescribeAdjustmentTypesRequest - 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.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.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<DescribeScheduledActionsResult> describeScheduledActionsAsync(DescribeScheduledActionsRequest describeScheduledActionsRequest) throws AmazonServiceException, AmazonClientException
Lists the actions scheduled for your Auto Scaling group that haven't been executed. To list the actions that were already executed, use DescribeScalingActivities.
describeScheduledActionsAsync in interface AmazonAutoScalingAsyncdescribeScheduledActionsRequest - Container for the necessary
parameters to execute the DescribeScheduledActions operation on
AmazonAutoScaling.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.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<DescribeScheduledActionsResult> describeScheduledActionsAsync(DescribeScheduledActionsRequest describeScheduledActionsRequest, AsyncHandler<DescribeScheduledActionsRequest,DescribeScheduledActionsResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Lists the actions scheduled for your Auto Scaling group that haven't been executed. To list the actions that were already executed, use DescribeScalingActivities.
describeScheduledActionsAsync in interface AmazonAutoScalingAsyncdescribeScheduledActionsRequest - 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.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.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<RecordLifecycleActionHeartbeatResult> recordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest recordLifecycleActionHeartbeatRequest) throws AmazonServiceException, AmazonClientException
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:
For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .
recordLifecycleActionHeartbeatAsync in interface AmazonAutoScalingAsyncrecordLifecycleActionHeartbeatRequest - Container for the
necessary parameters to execute the RecordLifecycleActionHeartbeat
operation on AmazonAutoScaling.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.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<RecordLifecycleActionHeartbeatResult> recordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest recordLifecycleActionHeartbeatRequest, AsyncHandler<RecordLifecycleActionHeartbeatRequest,RecordLifecycleActionHeartbeatResult> asyncHandler) throws AmazonServiceException, AmazonClientException
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:
For more information, see Auto Scaling Pending State and Auto Scaling Terminating State in the Auto Scaling Developer Guide .
recordLifecycleActionHeartbeatAsync in interface AmazonAutoScalingAsyncrecordLifecycleActionHeartbeatRequest - 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.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.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<Void> putScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest putScheduledUpdateGroupActionRequest) throws AmazonServiceException, AmazonClientException
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 .
NOTE: Auto Scaling supports the date and time expressed in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT only.
putScheduledUpdateGroupActionAsync in interface AmazonAutoScalingAsyncputScheduledUpdateGroupActionRequest - Container for the
necessary parameters to execute the PutScheduledUpdateGroupAction
operation on AmazonAutoScaling.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.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<Void> putScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest putScheduledUpdateGroupActionRequest, AsyncHandler<PutScheduledUpdateGroupActionRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
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 .
NOTE: Auto Scaling supports the date and time expressed in "YYYY-MM-DDThh:mm:ssZ" format in UTC/GMT only.
putScheduledUpdateGroupActionAsync in interface AmazonAutoScalingAsyncputScheduledUpdateGroupActionRequest - 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.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.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<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest describeMetricCollectionTypesRequest) throws AmazonServiceException, AmazonClientException
Returns a list of metrics and a corresponding list of granularities for each metric.
NOTE: The GroupStandbyInstances metric is not returned by default. You must explicitly request it when calling EnableMetricsCollection.
describeMetricCollectionTypesAsync in interface AmazonAutoScalingAsyncdescribeMetricCollectionTypesRequest - Container for the
necessary parameters to execute the DescribeMetricCollectionTypes
operation on AmazonAutoScaling.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.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<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest describeMetricCollectionTypesRequest, AsyncHandler<DescribeMetricCollectionTypesRequest,DescribeMetricCollectionTypesResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Returns a list of metrics and a corresponding list of granularities for each metric.
NOTE: The GroupStandbyInstances metric is not returned by default. You must explicitly request it when calling EnableMetricsCollection.
describeMetricCollectionTypesAsync in interface AmazonAutoScalingAsyncdescribeMetricCollectionTypesRequest - 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.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.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<Void> setDesiredCapacityAsync(SetDesiredCapacityRequest setDesiredCapacityRequest) throws AmazonServiceException, AmazonClientException
Sets the size of the specified AutoScalingGroup.
setDesiredCapacityAsync in interface AmazonAutoScalingAsyncsetDesiredCapacityRequest - Container for the necessary
parameters to execute the SetDesiredCapacity operation on
AmazonAutoScaling.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.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<Void> setDesiredCapacityAsync(SetDesiredCapacityRequest setDesiredCapacityRequest, AsyncHandler<SetDesiredCapacityRequest,Void> asyncHandler) throws AmazonServiceException, AmazonClientException
Sets the size of the specified AutoScalingGroup.
setDesiredCapacityAsync in interface AmazonAutoScalingAsyncsetDesiredCapacityRequest - 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.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.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<TerminateInstanceInAutoScalingGroupResult> terminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest terminateInstanceInAutoScalingGroupRequest) throws AmazonServiceException, AmazonClientException
Terminates the specified instance and optionally adjusts the desired group size.
NOTE:This call simply makes a termination request. The instances is not terminated immediately.
terminateInstanceInAutoScalingGroupAsync in interface AmazonAutoScalingAsyncterminateInstanceInAutoScalingGroupRequest - Container for the
necessary parameters to execute the
TerminateInstanceInAutoScalingGroup operation on AmazonAutoScaling.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.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<TerminateInstanceInAutoScalingGroupResult> terminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest terminateInstanceInAutoScalingGroupRequest, AsyncHandler<TerminateInstanceInAutoScalingGroupRequest,TerminateInstanceInAutoScalingGroupResult> asyncHandler) throws AmazonServiceException, AmazonClientException
Terminates the specified instance and optionally adjusts the desired group size.
NOTE:This call simply makes a termination request. The instances is not terminated immediately.
terminateInstanceInAutoScalingGroupAsync in interface AmazonAutoScalingAsyncterminateInstanceInAutoScalingGroupRequest - 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.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.AmazonServiceException - If an error response is returned by AmazonAutoScaling indicating
either a problem with the data in the request, or a server side issue.Copyright © 2014. All rights reserved.