Class AbstractAmazonAutoScalingAsync
- java.lang.Object
-
- com.amazonaws.services.autoscaling.AbstractAmazonAutoScaling
-
- com.amazonaws.services.autoscaling.AbstractAmazonAutoScalingAsync
-
- All Implemented Interfaces:
AmazonAutoScaling
,AmazonAutoScalingAsync
public class AbstractAmazonAutoScalingAsync extends AbstractAmazonAutoScaling implements AmazonAutoScalingAsync
Abstract implementation ofAmazonAutoScalingAsync
. Convenient method forms pass through to the corresponding overload that takes a request object and anAsyncHandler
, which throws anUnsupportedOperationException
.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractAmazonAutoScalingAsync()
-
Method Summary
-
Methods inherited from class com.amazonaws.services.autoscaling.AbstractAmazonAutoScaling
attachInstances, attachLoadBalancers, attachLoadBalancers, 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, describeLoadBalancers, describeMetricCollectionTypes, describeMetricCollectionTypes, describeNotificationConfigurations, describeNotificationConfigurations, describePolicies, describePolicies, describeScalingActivities, describeScalingActivities, describeScalingProcessTypes, describeScalingProcessTypes, describeScheduledActions, describeScheduledActions, describeTags, describeTags, describeTerminationPolicyTypes, describeTerminationPolicyTypes, detachInstances, detachLoadBalancers, detachLoadBalancers, disableMetricsCollection, enableMetricsCollection, enterStandby, executePolicy, exitStandby, getCachedResponseMetadata, putLifecycleHook, putNotificationConfiguration, putScalingPolicy, putScheduledUpdateGroupAction, recordLifecycleActionHeartbeat, resumeProcesses, setDesiredCapacity, setEndpoint, setInstanceHealth, setInstanceProtection, setRegion, shutdown, suspendProcesses, terminateInstanceInAutoScalingGroup, updateAutoScalingGroup
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.amazonaws.services.autoscaling.AmazonAutoScaling
attachInstances, attachLoadBalancers, attachLoadBalancers, 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, describeLoadBalancers, describeMetricCollectionTypes, describeMetricCollectionTypes, describeNotificationConfigurations, describeNotificationConfigurations, describePolicies, describePolicies, describeScalingActivities, describeScalingActivities, describeScalingProcessTypes, describeScalingProcessTypes, describeScheduledActions, describeScheduledActions, describeTags, describeTags, describeTerminationPolicyTypes, describeTerminationPolicyTypes, detachInstances, detachLoadBalancers, detachLoadBalancers, disableMetricsCollection, enableMetricsCollection, enterStandby, executePolicy, exitStandby, getCachedResponseMetadata, putLifecycleHook, putNotificationConfiguration, putScalingPolicy, putScheduledUpdateGroupAction, recordLifecycleActionHeartbeat, resumeProcesses, setDesiredCapacity, setEndpoint, setInstanceHealth, setInstanceProtection, setRegion, shutdown, suspendProcesses, terminateInstanceInAutoScalingGroup, updateAutoScalingGroup
-
-
-
-
Method Detail
-
attachInstancesAsync
public Future<AttachInstancesResult> attachInstancesAsync(AttachInstancesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Attaches one or more EC2 instances to the specified Auto Scaling group.
When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.
For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
attachInstancesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the AttachInstances operation returned by the service.
-
attachInstancesAsync
public Future<AttachInstancesResult> attachInstancesAsync(AttachInstancesRequest request, AsyncHandler<AttachInstancesRequest,AttachInstancesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Attaches one or more EC2 instances to the specified Auto Scaling group.
When you attach instances, Auto Scaling increases the desired capacity of the group by the number of instances being attached. If the number of instances being attached plus the desired capacity of the group exceeds the maximum size of the group, the operation fails.
For more information, see Attach EC2 Instances to Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
attachInstancesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the AttachInstances operation returned by the service.
-
attachLoadBalancersAsync
public Future<AttachLoadBalancersResult> attachLoadBalancersAsync(AttachLoadBalancersRequest request)
Description copied from interface:AmazonAutoScalingAsync
Attaches one or more load balancers to the specified Auto Scaling group.
To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.
For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
attachLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the AttachLoadBalancers operation returned by the service.
-
attachLoadBalancersAsync
public Future<AttachLoadBalancersResult> attachLoadBalancersAsync(AttachLoadBalancersRequest request, AsyncHandler<AttachLoadBalancersRequest,AttachLoadBalancersResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Attaches one or more load balancers to the specified Auto Scaling group.
To describe the load balancers for an Auto Scaling group, use DescribeLoadBalancers. To detach the load balancer from the Auto Scaling group, use DetachLoadBalancers.
For more information, see Attach a Load Balancer to Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
attachLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the AttachLoadBalancers operation returned by the service.
-
attachLoadBalancersAsync
public Future<AttachLoadBalancersResult> attachLoadBalancersAsync()
Simplified method form for invoking the AttachLoadBalancers operation.- Specified by:
attachLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
- See Also:
attachLoadBalancersAsync(AttachLoadBalancersRequest)
-
attachLoadBalancersAsync
public Future<AttachLoadBalancersResult> attachLoadBalancersAsync(AsyncHandler<AttachLoadBalancersRequest,AttachLoadBalancersResult> asyncHandler)
Simplified method form for invoking the AttachLoadBalancers operation with an AsyncHandler.- Specified by:
attachLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
- See Also:
attachLoadBalancersAsync(AttachLoadBalancersRequest, com.amazonaws.handlers.AsyncHandler)
-
completeLifecycleActionAsync
public Future<CompleteLifecycleActionResult> completeLifecycleActionAsync(CompleteLifecycleActionRequest request)
Description copied from interface:AmazonAutoScalingAsync
Completes the lifecycle action for the specified token or instance with the specified result.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
completeLifecycleActionAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the CompleteLifecycleAction operation returned by the service.
-
completeLifecycleActionAsync
public Future<CompleteLifecycleActionResult> completeLifecycleActionAsync(CompleteLifecycleActionRequest request, AsyncHandler<CompleteLifecycleActionRequest,CompleteLifecycleActionResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Completes the lifecycle action for the specified token or instance with the specified result.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
completeLifecycleActionAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CompleteLifecycleAction operation returned by the service.
-
createAutoScalingGroupAsync
public Future<CreateAutoScalingGroupResult> createAutoScalingGroupAsync(CreateAutoScalingGroupRequest request)
Description copied from interface:AmazonAutoScalingAsync
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 this limit, see DescribeAccountLimits.
For more information, see Auto Scaling Groups in the Auto Scaling Developer Guide.
- Specified by:
createAutoScalingGroupAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the CreateAutoScalingGroup operation returned by the service.
-
createAutoScalingGroupAsync
public Future<CreateAutoScalingGroupResult> createAutoScalingGroupAsync(CreateAutoScalingGroupRequest request, AsyncHandler<CreateAutoScalingGroupRequest,CreateAutoScalingGroupResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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 this limit, see DescribeAccountLimits.
For more information, see Auto Scaling Groups in the Auto Scaling Developer Guide.
- Specified by:
createAutoScalingGroupAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateAutoScalingGroup operation returned by the service.
-
createLaunchConfigurationAsync
public Future<CreateLaunchConfigurationResult> createLaunchConfigurationAsync(CreateLaunchConfigurationRequest request)
Description copied from interface:AmazonAutoScalingAsync
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 this limit, see DescribeAccountLimits.
For more information, see Launch Configurations in the Auto Scaling Developer Guide.
- Specified by:
createLaunchConfigurationAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the CreateLaunchConfiguration operation returned by the service.
-
createLaunchConfigurationAsync
public Future<CreateLaunchConfigurationResult> createLaunchConfigurationAsync(CreateLaunchConfigurationRequest request, AsyncHandler<CreateLaunchConfigurationRequest,CreateLaunchConfigurationResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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 this limit, see DescribeAccountLimits.
For more information, see Launch Configurations in the Auto Scaling Developer Guide.
- Specified by:
createLaunchConfigurationAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateLaunchConfiguration operation returned by the service.
-
createOrUpdateTagsAsync
public Future<CreateOrUpdateTagsResult> createOrUpdateTagsAsync(CreateOrUpdateTagsRequest request)
Description copied from interface:AmazonAutoScalingAsync
Creates or updates tags for the specified Auto Scaling group.
When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
- Specified by:
createOrUpdateTagsAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the CreateOrUpdateTags operation returned by the service.
-
createOrUpdateTagsAsync
public Future<CreateOrUpdateTagsResult> createOrUpdateTagsAsync(CreateOrUpdateTagsRequest request, AsyncHandler<CreateOrUpdateTagsRequest,CreateOrUpdateTagsResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Creates or updates tags for the specified Auto Scaling group.
When you specify a tag with a key that already exists, the operation overwrites the previous tag definition, and you do not get an error message.
For more information, see Tagging Auto Scaling Groups and Instances in the Auto Scaling Developer Guide.
- Specified by:
createOrUpdateTagsAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the CreateOrUpdateTags operation returned by the service.
-
deleteAutoScalingGroupAsync
public Future<DeleteAutoScalingGroupResult> deleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified Auto Scaling group.
If the group has instances or scaling activities in progress, you must specify the option to force the deletion in order for it to succeed.
If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.
To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.
To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.
- Specified by:
deleteAutoScalingGroupAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DeleteAutoScalingGroup operation returned by the service.
-
deleteAutoScalingGroupAsync
public Future<DeleteAutoScalingGroupResult> deleteAutoScalingGroupAsync(DeleteAutoScalingGroupRequest request, AsyncHandler<DeleteAutoScalingGroupRequest,DeleteAutoScalingGroupResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified Auto Scaling group.
If the group has instances or scaling activities in progress, you must specify the option to force the deletion in order for it to succeed.
If the group has policies, deleting the group deletes the policies, the underlying alarm actions, and any alarm that no longer has an associated action.
To remove instances from the Auto Scaling group before deleting it, call DetachInstances with the list of instances and the option to decrement the desired capacity so that Auto Scaling does not launch replacement instances.
To terminate all instances before deleting the Auto Scaling group, call UpdateAutoScalingGroup and set the minimum size and desired capacity of the Auto Scaling group to zero.
- Specified by:
deleteAutoScalingGroupAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteAutoScalingGroup operation returned by the service.
-
deleteLaunchConfigurationAsync
public Future<DeleteLaunchConfigurationResult> deleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request)
Description copied from interface:AmazonAutoScalingAsync
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.
- Specified by:
deleteLaunchConfigurationAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DeleteLaunchConfiguration operation returned by the service.
-
deleteLaunchConfigurationAsync
public Future<DeleteLaunchConfigurationResult> deleteLaunchConfigurationAsync(DeleteLaunchConfigurationRequest request, AsyncHandler<DeleteLaunchConfigurationRequest,DeleteLaunchConfigurationResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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.
- Specified by:
deleteLaunchConfigurationAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteLaunchConfiguration operation returned by the service.
-
deleteLifecycleHookAsync
public Future<DeleteLifecycleHookResult> deleteLifecycleHookAsync(DeleteLifecycleHookRequest request)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified lifecycle hook.
If there are any outstanding lifecycle actions, they are completed first (
ABANDON
for launching instances,CONTINUE
for terminating instances).- Specified by:
deleteLifecycleHookAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DeleteLifecycleHook operation returned by the service.
-
deleteLifecycleHookAsync
public Future<DeleteLifecycleHookResult> deleteLifecycleHookAsync(DeleteLifecycleHookRequest request, AsyncHandler<DeleteLifecycleHookRequest,DeleteLifecycleHookResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified lifecycle hook.
If there are any outstanding lifecycle actions, they are completed first (
ABANDON
for launching instances,CONTINUE
for terminating instances).- Specified by:
deleteLifecycleHookAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteLifecycleHook operation returned by the service.
-
deleteNotificationConfigurationAsync
public Future<DeleteNotificationConfigurationResult> deleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified notification.
- Specified by:
deleteNotificationConfigurationAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DeleteNotificationConfiguration operation returned by the service.
-
deleteNotificationConfigurationAsync
public Future<DeleteNotificationConfigurationResult> deleteNotificationConfigurationAsync(DeleteNotificationConfigurationRequest request, AsyncHandler<DeleteNotificationConfigurationRequest,DeleteNotificationConfigurationResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified notification.
- Specified by:
deleteNotificationConfigurationAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteNotificationConfiguration operation returned by the service.
-
deletePolicyAsync
public Future<DeletePolicyResult> deletePolicyAsync(DeletePolicyRequest request)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified Auto Scaling policy.
Deleting a policy deletes the underlying alarm action, but does not delete the alarm, even if it no longer has an associated action.
- Specified by:
deletePolicyAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DeletePolicy operation returned by the service.
-
deletePolicyAsync
public Future<DeletePolicyResult> deletePolicyAsync(DeletePolicyRequest request, AsyncHandler<DeletePolicyRequest,DeletePolicyResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified Auto Scaling policy.
Deleting a policy deletes the underlying alarm action, but does not delete the alarm, even if it no longer has an associated action.
- Specified by:
deletePolicyAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeletePolicy operation returned by the service.
-
deleteScheduledActionAsync
public Future<DeleteScheduledActionResult> deleteScheduledActionAsync(DeleteScheduledActionRequest request)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified scheduled action.
- Specified by:
deleteScheduledActionAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DeleteScheduledAction operation returned by the service.
-
deleteScheduledActionAsync
public Future<DeleteScheduledActionResult> deleteScheduledActionAsync(DeleteScheduledActionRequest request, AsyncHandler<DeleteScheduledActionRequest,DeleteScheduledActionResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified scheduled action.
- Specified by:
deleteScheduledActionAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteScheduledAction operation returned by the service.
-
deleteTagsAsync
public Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest request)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified tags.
- Specified by:
deleteTagsAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DeleteTags operation returned by the service.
-
deleteTagsAsync
public Future<DeleteTagsResult> deleteTagsAsync(DeleteTagsRequest request, AsyncHandler<DeleteTagsRequest,DeleteTagsResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Deletes the specified tags.
- Specified by:
deleteTagsAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DeleteTags operation returned by the service.
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the current Auto Scaling resource limits for your AWS account.
For information about requesting an increase in these limits, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
describeAccountLimitsAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeAccountLimits operation returned by the service.
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(DescribeAccountLimitsRequest request, AsyncHandler<DescribeAccountLimitsRequest,DescribeAccountLimitsResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the current Auto Scaling resource limits for your AWS account.
For information about requesting an increase in these limits, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
describeAccountLimitsAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAccountLimits operation returned by the service.
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync()
Simplified method form for invoking the DescribeAccountLimits operation.- Specified by:
describeAccountLimitsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeAccountLimitsAsync(DescribeAccountLimitsRequest)
-
describeAccountLimitsAsync
public Future<DescribeAccountLimitsResult> describeAccountLimitsAsync(AsyncHandler<DescribeAccountLimitsRequest,DescribeAccountLimitsResult> asyncHandler)
Simplified method form for invoking the DescribeAccountLimits operation with an AsyncHandler.- Specified by:
describeAccountLimitsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeAccountLimitsAsync(DescribeAccountLimitsRequest, com.amazonaws.handlers.AsyncHandler)
-
describeAdjustmentTypesAsync
public Future<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the policy adjustment types for use with PutScalingPolicy.
- Specified by:
describeAdjustmentTypesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeAdjustmentTypes operation returned by the service.
-
describeAdjustmentTypesAsync
public Future<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest request, AsyncHandler<DescribeAdjustmentTypesRequest,DescribeAdjustmentTypesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the policy adjustment types for use with PutScalingPolicy.
- Specified by:
describeAdjustmentTypesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAdjustmentTypes operation returned by the service.
-
describeAdjustmentTypesAsync
public Future<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync()
Simplified method form for invoking the DescribeAdjustmentTypes operation.- Specified by:
describeAdjustmentTypesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest)
-
describeAdjustmentTypesAsync
public Future<DescribeAdjustmentTypesResult> describeAdjustmentTypesAsync(AsyncHandler<DescribeAdjustmentTypesRequest,DescribeAdjustmentTypesResult> asyncHandler)
Simplified method form for invoking the DescribeAdjustmentTypes operation with an AsyncHandler.- Specified by:
describeAdjustmentTypesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeAdjustmentTypesAsync(DescribeAdjustmentTypesRequest, com.amazonaws.handlers.AsyncHandler)
-
describeAutoScalingGroupsAsync
public Future<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes one or more Auto Scaling groups. If a list of names is not provided, the call describes all Auto Scaling groups.
- Specified by:
describeAutoScalingGroupsAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeAutoScalingGroups operation returned by the service.
-
describeAutoScalingGroupsAsync
public Future<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest request, AsyncHandler<DescribeAutoScalingGroupsRequest,DescribeAutoScalingGroupsResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes one or more Auto Scaling groups. If a list of names is not provided, the call describes all Auto Scaling groups.
- Specified by:
describeAutoScalingGroupsAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAutoScalingGroups operation returned by the service.
-
describeAutoScalingGroupsAsync
public Future<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync()
Simplified method form for invoking the DescribeAutoScalingGroups operation.- Specified by:
describeAutoScalingGroupsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest)
-
describeAutoScalingGroupsAsync
public Future<DescribeAutoScalingGroupsResult> describeAutoScalingGroupsAsync(AsyncHandler<DescribeAutoScalingGroupsRequest,DescribeAutoScalingGroupsResult> asyncHandler)
Simplified method form for invoking the DescribeAutoScalingGroups operation with an AsyncHandler.- Specified by:
describeAutoScalingGroupsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeAutoScalingGroupsAsync(DescribeAutoScalingGroupsRequest, com.amazonaws.handlers.AsyncHandler)
-
describeAutoScalingInstancesAsync
public Future<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes one or more Auto Scaling instances. If a list is not provided, the call describes all instances.
- Specified by:
describeAutoScalingInstancesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeAutoScalingInstances operation returned by the service.
-
describeAutoScalingInstancesAsync
public Future<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest request, AsyncHandler<DescribeAutoScalingInstancesRequest,DescribeAutoScalingInstancesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes one or more Auto Scaling instances. If a list is not provided, the call describes all instances.
- Specified by:
describeAutoScalingInstancesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAutoScalingInstances operation returned by the service.
-
describeAutoScalingInstancesAsync
public Future<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync()
Simplified method form for invoking the DescribeAutoScalingInstances operation.- Specified by:
describeAutoScalingInstancesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeAutoScalingInstancesAsync(DescribeAutoScalingInstancesRequest)
-
describeAutoScalingInstancesAsync
public Future<DescribeAutoScalingInstancesResult> describeAutoScalingInstancesAsync(AsyncHandler<DescribeAutoScalingInstancesRequest,DescribeAutoScalingInstancesResult> asyncHandler)
Simplified method form for invoking the DescribeAutoScalingInstances operation with an AsyncHandler.
-
describeAutoScalingNotificationTypesAsync
public Future<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the notification types that are supported by Auto Scaling.
- Specified by:
describeAutoScalingNotificationTypesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeAutoScalingNotificationTypes operation returned by the service.
-
describeAutoScalingNotificationTypesAsync
public Future<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest request, AsyncHandler<DescribeAutoScalingNotificationTypesRequest,DescribeAutoScalingNotificationTypesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the notification types that are supported by Auto Scaling.
- Specified by:
describeAutoScalingNotificationTypesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeAutoScalingNotificationTypes operation returned by the service.
-
describeAutoScalingNotificationTypesAsync
public Future<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync()
Simplified method form for invoking the DescribeAutoScalingNotificationTypes operation.- Specified by:
describeAutoScalingNotificationTypesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeAutoScalingNotificationTypesAsync(DescribeAutoScalingNotificationTypesRequest)
-
describeAutoScalingNotificationTypesAsync
public Future<DescribeAutoScalingNotificationTypesResult> describeAutoScalingNotificationTypesAsync(AsyncHandler<DescribeAutoScalingNotificationTypesRequest,DescribeAutoScalingNotificationTypesResult> asyncHandler)
Simplified method form for invoking the DescribeAutoScalingNotificationTypes operation with an AsyncHandler.
-
describeLaunchConfigurationsAsync
public Future<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes one or more launch configurations. If you omit the list of names, then the call describes all launch configurations.
- Specified by:
describeLaunchConfigurationsAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeLaunchConfigurations operation returned by the service.
-
describeLaunchConfigurationsAsync
public Future<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest request, AsyncHandler<DescribeLaunchConfigurationsRequest,DescribeLaunchConfigurationsResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes one or more launch configurations. If you omit the list of names, then the call describes all launch configurations.
- Specified by:
describeLaunchConfigurationsAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeLaunchConfigurations operation returned by the service.
-
describeLaunchConfigurationsAsync
public Future<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync()
Simplified method form for invoking the DescribeLaunchConfigurations operation.- Specified by:
describeLaunchConfigurationsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeLaunchConfigurationsAsync(DescribeLaunchConfigurationsRequest)
-
describeLaunchConfigurationsAsync
public Future<DescribeLaunchConfigurationsResult> describeLaunchConfigurationsAsync(AsyncHandler<DescribeLaunchConfigurationsRequest,DescribeLaunchConfigurationsResult> asyncHandler)
Simplified method form for invoking the DescribeLaunchConfigurations operation with an AsyncHandler.
-
describeLifecycleHookTypesAsync
public Future<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the available types of lifecycle hooks.
- Specified by:
describeLifecycleHookTypesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeLifecycleHookTypes operation returned by the service.
-
describeLifecycleHookTypesAsync
public Future<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest request, AsyncHandler<DescribeLifecycleHookTypesRequest,DescribeLifecycleHookTypesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the available types of lifecycle hooks.
- Specified by:
describeLifecycleHookTypesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeLifecycleHookTypes operation returned by the service.
-
describeLifecycleHookTypesAsync
public Future<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync()
Simplified method form for invoking the DescribeLifecycleHookTypes operation.- Specified by:
describeLifecycleHookTypesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest)
-
describeLifecycleHookTypesAsync
public Future<DescribeLifecycleHookTypesResult> describeLifecycleHookTypesAsync(AsyncHandler<DescribeLifecycleHookTypesRequest,DescribeLifecycleHookTypesResult> asyncHandler)
Simplified method form for invoking the DescribeLifecycleHookTypes operation with an AsyncHandler.- Specified by:
describeLifecycleHookTypesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeLifecycleHookTypesAsync(DescribeLifecycleHookTypesRequest, com.amazonaws.handlers.AsyncHandler)
-
describeLifecycleHooksAsync
public Future<DescribeLifecycleHooksResult> describeLifecycleHooksAsync(DescribeLifecycleHooksRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the lifecycle hooks for the specified Auto Scaling group.
- Specified by:
describeLifecycleHooksAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeLifecycleHooks operation returned by the service.
-
describeLifecycleHooksAsync
public Future<DescribeLifecycleHooksResult> describeLifecycleHooksAsync(DescribeLifecycleHooksRequest request, AsyncHandler<DescribeLifecycleHooksRequest,DescribeLifecycleHooksResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the lifecycle hooks for the specified Auto Scaling group.
- Specified by:
describeLifecycleHooksAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeLifecycleHooks operation returned by the service.
-
describeLoadBalancersAsync
public Future<DescribeLoadBalancersResult> describeLoadBalancersAsync(DescribeLoadBalancersRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the load balancers for the specified Auto Scaling group.
- Specified by:
describeLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeLoadBalancers operation returned by the service.
-
describeLoadBalancersAsync
public Future<DescribeLoadBalancersResult> describeLoadBalancersAsync(DescribeLoadBalancersRequest request, AsyncHandler<DescribeLoadBalancersRequest,DescribeLoadBalancersResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the load balancers for the specified Auto Scaling group.
- Specified by:
describeLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeLoadBalancers operation returned by the service.
-
describeMetricCollectionTypesAsync
public Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the available CloudWatch metrics for Auto Scaling.
Note that the
GroupStandbyInstances
metric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.- Specified by:
describeMetricCollectionTypesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeMetricCollectionTypes operation returned by the service.
-
describeMetricCollectionTypesAsync
public Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest request, AsyncHandler<DescribeMetricCollectionTypesRequest,DescribeMetricCollectionTypesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the available CloudWatch metrics for Auto Scaling.
Note that the
GroupStandbyInstances
metric is not returned by default. You must explicitly request this metric when calling EnableMetricsCollection.- Specified by:
describeMetricCollectionTypesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeMetricCollectionTypes operation returned by the service.
-
describeMetricCollectionTypesAsync
public Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync()
Simplified method form for invoking the DescribeMetricCollectionTypes operation.- Specified by:
describeMetricCollectionTypesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeMetricCollectionTypesAsync(DescribeMetricCollectionTypesRequest)
-
describeMetricCollectionTypesAsync
public Future<DescribeMetricCollectionTypesResult> describeMetricCollectionTypesAsync(AsyncHandler<DescribeMetricCollectionTypesRequest,DescribeMetricCollectionTypesResult> asyncHandler)
Simplified method form for invoking the DescribeMetricCollectionTypes operation with an AsyncHandler.
-
describeNotificationConfigurationsAsync
public Future<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the notification actions associated with the specified Auto Scaling group.
- Specified by:
describeNotificationConfigurationsAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeNotificationConfigurations operation returned by the service.
-
describeNotificationConfigurationsAsync
public Future<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest request, AsyncHandler<DescribeNotificationConfigurationsRequest,DescribeNotificationConfigurationsResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the notification actions associated with the specified Auto Scaling group.
- Specified by:
describeNotificationConfigurationsAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeNotificationConfigurations operation returned by the service.
-
describeNotificationConfigurationsAsync
public Future<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync()
Simplified method form for invoking the DescribeNotificationConfigurations operation.- Specified by:
describeNotificationConfigurationsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeNotificationConfigurationsAsync(DescribeNotificationConfigurationsRequest)
-
describeNotificationConfigurationsAsync
public Future<DescribeNotificationConfigurationsResult> describeNotificationConfigurationsAsync(AsyncHandler<DescribeNotificationConfigurationsRequest,DescribeNotificationConfigurationsResult> asyncHandler)
Simplified method form for invoking the DescribeNotificationConfigurations operation with an AsyncHandler.
-
describePoliciesAsync
public Future<DescribePoliciesResult> describePoliciesAsync(DescribePoliciesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the policies for the specified Auto Scaling group.
- Specified by:
describePoliciesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribePolicies operation returned by the service.
-
describePoliciesAsync
public Future<DescribePoliciesResult> describePoliciesAsync(DescribePoliciesRequest request, AsyncHandler<DescribePoliciesRequest,DescribePoliciesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the policies for the specified Auto Scaling group.
- Specified by:
describePoliciesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribePolicies operation returned by the service.
-
describePoliciesAsync
public Future<DescribePoliciesResult> describePoliciesAsync()
Simplified method form for invoking the DescribePolicies operation.- Specified by:
describePoliciesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describePoliciesAsync(DescribePoliciesRequest)
-
describePoliciesAsync
public Future<DescribePoliciesResult> describePoliciesAsync(AsyncHandler<DescribePoliciesRequest,DescribePoliciesResult> asyncHandler)
Simplified method form for invoking the DescribePolicies operation with an AsyncHandler.- Specified by:
describePoliciesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describePoliciesAsync(DescribePoliciesRequest, com.amazonaws.handlers.AsyncHandler)
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request)
Description copied from interface:AmazonAutoScalingAsync
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.- Specified by:
describeScalingActivitiesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeScalingActivities operation returned by the service.
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, AsyncHandler<DescribeScalingActivitiesRequest,DescribeScalingActivitiesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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.- Specified by:
describeScalingActivitiesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeScalingActivities operation returned by the service.
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync()
Simplified method form for invoking the DescribeScalingActivities operation.- Specified by:
describeScalingActivitiesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeScalingActivitiesAsync(DescribeScalingActivitiesRequest)
-
describeScalingActivitiesAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(AsyncHandler<DescribeScalingActivitiesRequest,DescribeScalingActivitiesResult> asyncHandler)
Simplified method form for invoking the DescribeScalingActivities operation with an AsyncHandler.- Specified by:
describeScalingActivitiesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeScalingActivitiesAsync(DescribeScalingActivitiesRequest, com.amazonaws.handlers.AsyncHandler)
-
describeScalingProcessTypesAsync
public Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.
- Specified by:
describeScalingProcessTypesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeScalingProcessTypes operation returned by the service.
-
describeScalingProcessTypesAsync
public Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest request, AsyncHandler<DescribeScalingProcessTypesRequest,DescribeScalingProcessTypesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the scaling process types for use with ResumeProcesses and SuspendProcesses.
- Specified by:
describeScalingProcessTypesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeScalingProcessTypes operation returned by the service.
-
describeScalingProcessTypesAsync
public Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync()
Simplified method form for invoking the DescribeScalingProcessTypes operation.- Specified by:
describeScalingProcessTypesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeScalingProcessTypesAsync(DescribeScalingProcessTypesRequest)
-
describeScalingProcessTypesAsync
public Future<DescribeScalingProcessTypesResult> describeScalingProcessTypesAsync(AsyncHandler<DescribeScalingProcessTypesRequest,DescribeScalingProcessTypesResult> asyncHandler)
Simplified method form for invoking the DescribeScalingProcessTypes operation with an AsyncHandler.
-
describeScheduledActionsAsync
public Future<DescribeScheduledActionsResult> describeScheduledActionsAsync(DescribeScheduledActionsRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have already run, use DescribeScalingActivities.
- Specified by:
describeScheduledActionsAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeScheduledActions operation returned by the service.
-
describeScheduledActionsAsync
public Future<DescribeScheduledActionsResult> describeScheduledActionsAsync(DescribeScheduledActionsRequest request, AsyncHandler<DescribeScheduledActionsRequest,DescribeScheduledActionsResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the actions scheduled for your Auto Scaling group that haven't run. To describe the actions that have already run, use DescribeScalingActivities.
- Specified by:
describeScheduledActionsAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeScheduledActions operation returned by the service.
-
describeScheduledActionsAsync
public Future<DescribeScheduledActionsResult> describeScheduledActionsAsync()
Simplified method form for invoking the DescribeScheduledActions operation.- Specified by:
describeScheduledActionsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeScheduledActionsAsync(DescribeScheduledActionsRequest)
-
describeScheduledActionsAsync
public Future<DescribeScheduledActionsResult> describeScheduledActionsAsync(AsyncHandler<DescribeScheduledActionsRequest,DescribeScheduledActionsResult> asyncHandler)
Simplified method form for invoking the DescribeScheduledActions operation with an AsyncHandler.- Specified by:
describeScheduledActionsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeScheduledActionsAsync(DescribeScheduledActionsRequest, com.amazonaws.handlers.AsyncHandler)
-
describeTagsAsync
public Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest request)
Description copied from interface:AmazonAutoScalingAsync
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.
- Specified by:
describeTagsAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeTags operation returned by the service.
-
describeTagsAsync
public Future<DescribeTagsResult> describeTagsAsync(DescribeTagsRequest request, AsyncHandler<DescribeTagsRequest,DescribeTagsResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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.
- Specified by:
describeTagsAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeTags operation returned by the service.
-
describeTagsAsync
public Future<DescribeTagsResult> describeTagsAsync()
Simplified method form for invoking the DescribeTags operation.- Specified by:
describeTagsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeTagsAsync(DescribeTagsRequest)
-
describeTagsAsync
public Future<DescribeTagsResult> describeTagsAsync(AsyncHandler<DescribeTagsRequest,DescribeTagsResult> asyncHandler)
Simplified method form for invoking the DescribeTags operation with an AsyncHandler.- Specified by:
describeTagsAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeTagsAsync(DescribeTagsRequest, com.amazonaws.handlers.AsyncHandler)
-
describeTerminationPolicyTypesAsync
public Future<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Describes the termination policies supported by Auto Scaling.
- Specified by:
describeTerminationPolicyTypesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DescribeTerminationPolicyTypes operation returned by the service.
-
describeTerminationPolicyTypesAsync
public Future<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest request, AsyncHandler<DescribeTerminationPolicyTypesRequest,DescribeTerminationPolicyTypesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Describes the termination policies supported by Auto Scaling.
- Specified by:
describeTerminationPolicyTypesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DescribeTerminationPolicyTypes operation returned by the service.
-
describeTerminationPolicyTypesAsync
public Future<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync()
Simplified method form for invoking the DescribeTerminationPolicyTypes operation.- Specified by:
describeTerminationPolicyTypesAsync
in interfaceAmazonAutoScalingAsync
- See Also:
describeTerminationPolicyTypesAsync(DescribeTerminationPolicyTypesRequest)
-
describeTerminationPolicyTypesAsync
public Future<DescribeTerminationPolicyTypesResult> describeTerminationPolicyTypesAsync(AsyncHandler<DescribeTerminationPolicyTypesRequest,DescribeTerminationPolicyTypesResult> asyncHandler)
Simplified method form for invoking the DescribeTerminationPolicyTypes operation with an AsyncHandler.
-
detachInstancesAsync
public Future<DetachInstancesResult> detachInstancesAsync(DetachInstancesRequest request)
Description copied from interface:AmazonAutoScalingAsync
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.
If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.
For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
detachInstancesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DetachInstances operation returned by the service.
-
detachInstancesAsync
public Future<DetachInstancesResult> detachInstancesAsync(DetachInstancesRequest request, AsyncHandler<DetachInstancesRequest,DetachInstancesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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.
If you do not specify the option to decrement the desired capacity, Auto Scaling launches instances to replace the ones that are detached.
For more information, see Detach EC2 Instances from Your Auto Scaling Group in the Auto Scaling Developer Guide.
- Specified by:
detachInstancesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DetachInstances operation returned by the service.
-
detachLoadBalancersAsync
public Future<DetachLoadBalancersResult> detachLoadBalancersAsync(DetachLoadBalancersRequest request)
Description copied from interface:AmazonAutoScalingAsync
Removes one or more load balancers from the specified Auto Scaling group.
When you detach a load balancer, it enters the
Removing
state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. Note that the instances remain running.- Specified by:
detachLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DetachLoadBalancers operation returned by the service.
-
detachLoadBalancersAsync
public Future<DetachLoadBalancersResult> detachLoadBalancersAsync(DetachLoadBalancersRequest request, AsyncHandler<DetachLoadBalancersRequest,DetachLoadBalancersResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Removes one or more load balancers from the specified Auto Scaling group.
When you detach a load balancer, it enters the
Removing
state while deregistering the instances in the group. When all instances are deregistered, then you can no longer describe the load balancer using DescribeLoadBalancers. Note that the instances remain running.- Specified by:
detachLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DetachLoadBalancers operation returned by the service.
-
detachLoadBalancersAsync
public Future<DetachLoadBalancersResult> detachLoadBalancersAsync()
Simplified method form for invoking the DetachLoadBalancers operation.- Specified by:
detachLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
- See Also:
detachLoadBalancersAsync(DetachLoadBalancersRequest)
-
detachLoadBalancersAsync
public Future<DetachLoadBalancersResult> detachLoadBalancersAsync(AsyncHandler<DetachLoadBalancersRequest,DetachLoadBalancersResult> asyncHandler)
Simplified method form for invoking the DetachLoadBalancers operation with an AsyncHandler.- Specified by:
detachLoadBalancersAsync
in interfaceAmazonAutoScalingAsync
- See Also:
detachLoadBalancersAsync(DetachLoadBalancersRequest, com.amazonaws.handlers.AsyncHandler)
-
disableMetricsCollectionAsync
public Future<DisableMetricsCollectionResult> disableMetricsCollectionAsync(DisableMetricsCollectionRequest request)
Description copied from interface:AmazonAutoScalingAsync
Disables monitoring of the specified metrics for the specified Auto Scaling group.
- Specified by:
disableMetricsCollectionAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the DisableMetricsCollection operation returned by the service.
-
disableMetricsCollectionAsync
public Future<DisableMetricsCollectionResult> disableMetricsCollectionAsync(DisableMetricsCollectionRequest request, AsyncHandler<DisableMetricsCollectionRequest,DisableMetricsCollectionResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Disables monitoring of the specified metrics for the specified Auto Scaling group.
- Specified by:
disableMetricsCollectionAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the DisableMetricsCollection operation returned by the service.
-
enableMetricsCollectionAsync
public Future<EnableMetricsCollectionResult> enableMetricsCollectionAsync(EnableMetricsCollectionRequest request)
Description copied from interface:AmazonAutoScalingAsync
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 toTrue
.- Specified by:
enableMetricsCollectionAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the EnableMetricsCollection operation returned by the service.
-
enableMetricsCollectionAsync
public Future<EnableMetricsCollectionResult> enableMetricsCollectionAsync(EnableMetricsCollectionRequest request, AsyncHandler<EnableMetricsCollectionRequest,EnableMetricsCollectionResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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 toTrue
.- Specified by:
enableMetricsCollectionAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the EnableMetricsCollection operation returned by the service.
-
enterStandbyAsync
public Future<EnterStandbyResult> enterStandbyAsync(EnterStandbyRequest request)
Description copied from interface:AmazonAutoScalingAsync
Moves the specified instances into
Standby
mode.For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
enterStandbyAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the EnterStandby operation returned by the service.
-
enterStandbyAsync
public Future<EnterStandbyResult> enterStandbyAsync(EnterStandbyRequest request, AsyncHandler<EnterStandbyRequest,EnterStandbyResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Moves the specified instances into
Standby
mode.For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
enterStandbyAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the EnterStandby operation returned by the service.
-
executePolicyAsync
public Future<ExecutePolicyResult> executePolicyAsync(ExecutePolicyRequest request)
Description copied from interface:AmazonAutoScalingAsync
Executes the specified policy.
- Specified by:
executePolicyAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the ExecutePolicy operation returned by the service.
-
executePolicyAsync
public Future<ExecutePolicyResult> executePolicyAsync(ExecutePolicyRequest request, AsyncHandler<ExecutePolicyRequest,ExecutePolicyResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Executes the specified policy.
- Specified by:
executePolicyAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ExecutePolicy operation returned by the service.
-
exitStandbyAsync
public Future<ExitStandbyResult> exitStandbyAsync(ExitStandbyRequest request)
Description copied from interface:AmazonAutoScalingAsync
Moves the specified instances out of
Standby
mode.For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
exitStandbyAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the ExitStandby operation returned by the service.
-
exitStandbyAsync
public Future<ExitStandbyResult> exitStandbyAsync(ExitStandbyRequest request, AsyncHandler<ExitStandbyRequest,ExitStandbyResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Moves the specified instances out of
Standby
mode.For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
exitStandbyAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ExitStandby operation returned by the service.
-
putLifecycleHookAsync
public Future<PutLifecycleHookResult> putLifecycleHookAsync(PutLifecycleHookRequest request)
Description copied from interface:AmazonAutoScalingAsync
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 step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
If you exceed your maximum limit of lifecycle hooks, which by default is 50 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
putLifecycleHookAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the PutLifecycleHook operation returned by the service.
-
putLifecycleHookAsync
public Future<PutLifecycleHookResult> putLifecycleHookAsync(PutLifecycleHookRequest request, AsyncHandler<PutLifecycleHookRequest,PutLifecycleHookResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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 step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
If you exceed your maximum limit of lifecycle hooks, which by default is 50 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
putLifecycleHookAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutLifecycleHook operation returned by the service.
-
putNotificationConfigurationAsync
public Future<PutNotificationConfigurationResult> putNotificationConfigurationAsync(PutNotificationConfigurationRequest request)
Description copied from interface:AmazonAutoScalingAsync
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.
- Specified by:
putNotificationConfigurationAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the PutNotificationConfiguration operation returned by the service.
-
putNotificationConfigurationAsync
public Future<PutNotificationConfigurationResult> putNotificationConfigurationAsync(PutNotificationConfigurationRequest request, AsyncHandler<PutNotificationConfigurationRequest,PutNotificationConfigurationResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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.
- Specified by:
putNotificationConfigurationAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutNotificationConfiguration operation returned by the service.
-
putScalingPolicyAsync
public Future<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest request)
Description copied from interface:AmazonAutoScalingAsync
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.
If you exceed your maximum limit of step adjustments, which by default is 20 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
putScalingPolicyAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the PutScalingPolicy operation returned by the service.
-
putScalingPolicyAsync
public Future<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest request, AsyncHandler<PutScalingPolicyRequest,PutScalingPolicyResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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.
If you exceed your maximum limit of step adjustments, which by default is 20 per region, the call fails. For information about updating this limit, see AWS Service Limits in the Amazon Web Services General Reference.
- Specified by:
putScalingPolicyAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutScalingPolicy operation returned by the service.
-
putScheduledUpdateGroupActionAsync
public Future<PutScheduledUpdateGroupActionResult> putScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request)
Description copied from interface:AmazonAutoScalingAsync
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.
- Specified by:
putScheduledUpdateGroupActionAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the PutScheduledUpdateGroupAction operation returned by the service.
-
putScheduledUpdateGroupActionAsync
public Future<PutScheduledUpdateGroupActionResult> putScheduledUpdateGroupActionAsync(PutScheduledUpdateGroupActionRequest request, AsyncHandler<PutScheduledUpdateGroupActionRequest,PutScheduledUpdateGroupActionResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
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.
- Specified by:
putScheduledUpdateGroupActionAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the PutScheduledUpdateGroupAction operation returned by the service.
-
recordLifecycleActionHeartbeatAsync
public Future<RecordLifecycleActionHeartbeatResult> recordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request)
Description copied from interface:AmazonAutoScalingAsync
Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
recordLifecycleActionHeartbeatAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the RecordLifecycleActionHeartbeat operation returned by the service.
-
recordLifecycleActionHeartbeatAsync
public Future<RecordLifecycleActionHeartbeatResult> recordLifecycleActionHeartbeatAsync(RecordLifecycleActionHeartbeatRequest request, AsyncHandler<RecordLifecycleActionHeartbeatRequest,RecordLifecycleActionHeartbeatResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Records a heartbeat for the lifecycle action associated with the specified token or instance. This extends the timeout by the length of time defined using PutLifecycleHook.
This step is a part of the procedure for adding a lifecycle hook to an Auto Scaling group:
- (Optional) Create a Lambda function and a rule that allows CloudWatch Events to invoke your Lambda function when Auto Scaling launches or terminates instances.
- (Optional) Create a notification target and an IAM role. The target can be either an Amazon SQS queue or an Amazon SNS topic. The role allows Auto Scaling to publish lifecycle notifications to the target.
- Create the lifecycle hook. Specify whether the hook is used when the instances launch or terminate.
- If you need more time, record the lifecycle action heartbeat to keep the instance in a pending state.
- If you finish before the timeout period ends, complete the lifecycle action.
For more information, see Auto Scaling Lifecycle in the Auto Scaling Developer Guide.
- Specified by:
recordLifecycleActionHeartbeatAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the RecordLifecycleActionHeartbeat operation returned by the service.
-
resumeProcessesAsync
public Future<ResumeProcessesResult> resumeProcessesAsync(ResumeProcessesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Resumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.
For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.
- Specified by:
resumeProcessesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the ResumeProcesses operation returned by the service.
-
resumeProcessesAsync
public Future<ResumeProcessesResult> resumeProcessesAsync(ResumeProcessesRequest request, AsyncHandler<ResumeProcessesRequest,ResumeProcessesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Resumes the specified suspended Auto Scaling processes, or all suspended process, for the specified Auto Scaling group.
For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.
- Specified by:
resumeProcessesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the ResumeProcesses operation returned by the service.
-
setDesiredCapacityAsync
public Future<SetDesiredCapacityResult> setDesiredCapacityAsync(SetDesiredCapacityRequest request)
Description copied from interface:AmazonAutoScalingAsync
Sets the size of the specified Auto Scaling group.
For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling Developer Guide.
- Specified by:
setDesiredCapacityAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the SetDesiredCapacity operation returned by the service.
-
setDesiredCapacityAsync
public Future<SetDesiredCapacityResult> setDesiredCapacityAsync(SetDesiredCapacityRequest request, AsyncHandler<SetDesiredCapacityRequest,SetDesiredCapacityResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Sets the size of the specified Auto Scaling group.
For more information about desired capacity, see What Is Auto Scaling? in the Auto Scaling Developer Guide.
- Specified by:
setDesiredCapacityAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SetDesiredCapacity operation returned by the service.
-
setInstanceHealthAsync
public Future<SetInstanceHealthResult> setInstanceHealthAsync(SetInstanceHealthRequest request)
Description copied from interface:AmazonAutoScalingAsync
Sets the health status of the specified instance.
For more information, see Health Checks in the Auto Scaling Developer Guide.
- Specified by:
setInstanceHealthAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the SetInstanceHealth operation returned by the service.
-
setInstanceHealthAsync
public Future<SetInstanceHealthResult> setInstanceHealthAsync(SetInstanceHealthRequest request, AsyncHandler<SetInstanceHealthRequest,SetInstanceHealthResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Sets the health status of the specified instance.
For more information, see Health Checks in the Auto Scaling Developer Guide.
- Specified by:
setInstanceHealthAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SetInstanceHealth operation returned by the service.
-
setInstanceProtectionAsync
public Future<SetInstanceProtectionResult> setInstanceProtectionAsync(SetInstanceProtectionRequest request)
Description copied from interface:AmazonAutoScalingAsync
Updates the instance protection settings of the specified instances.
For more information, see Instance Protection in the Auto Scaling Developer Guide.
- Specified by:
setInstanceProtectionAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the SetInstanceProtection operation returned by the service.
-
setInstanceProtectionAsync
public Future<SetInstanceProtectionResult> setInstanceProtectionAsync(SetInstanceProtectionRequest request, AsyncHandler<SetInstanceProtectionRequest,SetInstanceProtectionResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Updates the instance protection settings of the specified instances.
For more information, see Instance Protection in the Auto Scaling Developer Guide.
- Specified by:
setInstanceProtectionAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SetInstanceProtection operation returned by the service.
-
suspendProcessesAsync
public Future<SuspendProcessesResult> suspendProcessesAsync(SuspendProcessesRequest request)
Description copied from interface:AmazonAutoScalingAsync
Suspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.
Note that if you suspend either the
Launch
orTerminate
process types, it can prevent other process types from functioning properly.To resume processes that have been suspended, use ResumeProcesses.
For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.
- Specified by:
suspendProcessesAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the SuspendProcesses operation returned by the service.
-
suspendProcessesAsync
public Future<SuspendProcessesResult> suspendProcessesAsync(SuspendProcessesRequest request, AsyncHandler<SuspendProcessesRequest,SuspendProcessesResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Suspends the specified Auto Scaling processes, or all processes, for the specified Auto Scaling group.
Note that if you suspend either the
Launch
orTerminate
process types, it can prevent other process types from functioning properly.To resume processes that have been suspended, use ResumeProcesses.
For more information, see Suspending and Resuming Auto Scaling Processes in the Auto Scaling Developer Guide.
- Specified by:
suspendProcessesAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the SuspendProcesses operation returned by the service.
-
terminateInstanceInAutoScalingGroupAsync
public Future<TerminateInstanceInAutoScalingGroupResult> terminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request)
Description copied from interface:AmazonAutoScalingAsync
Terminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instance is not terminated immediately.
- Specified by:
terminateInstanceInAutoScalingGroupAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the TerminateInstanceInAutoScalingGroup operation returned by the service.
-
terminateInstanceInAutoScalingGroupAsync
public Future<TerminateInstanceInAutoScalingGroupResult> terminateInstanceInAutoScalingGroupAsync(TerminateInstanceInAutoScalingGroupRequest request, AsyncHandler<TerminateInstanceInAutoScalingGroupRequest,TerminateInstanceInAutoScalingGroupResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Terminates the specified instance and optionally adjusts the desired group size.
This call simply makes a termination request. The instance is not terminated immediately.
- Specified by:
terminateInstanceInAutoScalingGroupAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the TerminateInstanceInAutoScalingGroup operation returned by the service.
-
updateAutoScalingGroupAsync
public Future<UpdateAutoScalingGroupResult> updateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request)
Description copied from interface:AmazonAutoScalingAsync
Updates the configuration for the specified Auto Scaling group.
To update an Auto Scaling group with a launch configuration with
InstanceMonitoring
set toFalse
, you must first disable the collection of group metrics. Otherwise, you will get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.
Note the following:
-
If you specify a new value for
MinSize
without specifying a value forDesiredCapacity
, and the newMinSize
is larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMinSize
. -
If you specify a new value for
MaxSize
without specifying a value forDesiredCapacity
, and the newMaxSize
is smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMaxSize
. -
All other optional parameters are left unchanged if not specified.
- Specified by:
updateAutoScalingGroupAsync
in interfaceAmazonAutoScalingAsync
- Returns:
- A Java Future containing the result of the UpdateAutoScalingGroup operation returned by the service.
-
-
updateAutoScalingGroupAsync
public Future<UpdateAutoScalingGroupResult> updateAutoScalingGroupAsync(UpdateAutoScalingGroupRequest request, AsyncHandler<UpdateAutoScalingGroupRequest,UpdateAutoScalingGroupResult> asyncHandler)
Description copied from interface:AmazonAutoScalingAsync
Updates the configuration for the specified Auto Scaling group.
To update an Auto Scaling group with a launch configuration with
InstanceMonitoring
set toFalse
, you must first disable the collection of group metrics. Otherwise, you will get an error. If you have previously enabled the collection of group metrics, you can disable it using DisableMetricsCollection.The new settings are registered upon the completion of this call. Any launch configuration settings take effect on any triggers after this call returns. Scaling activities that are currently in progress aren't affected.
Note the following:
-
If you specify a new value for
MinSize
without specifying a value forDesiredCapacity
, and the newMinSize
is larger than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMinSize
. -
If you specify a new value for
MaxSize
without specifying a value forDesiredCapacity
, and the newMaxSize
is smaller than the current size of the group, we implicitly call SetDesiredCapacity to set the size of the group to the new value ofMaxSize
. -
All other optional parameters are left unchanged if not specified.
- Specified by:
updateAutoScalingGroupAsync
in interfaceAmazonAutoScalingAsync
asyncHandler
- Asynchronous callback handler for events in the lifecycle of the request. Users can provide an implementation of the callback methods in this interface to receive notification of successful or unsuccessful completion of the operation.- Returns:
- A Java Future containing the result of the UpdateAutoScalingGroup operation returned by the service.
-
-
-