Interface AWSApplicationAutoScalingAsync
-
- All Superinterfaces:
AWSApplicationAutoScaling
- All Known Implementing Classes:
AbstractAWSApplicationAutoScalingAsync
,AWSApplicationAutoScalingAsyncClient
public interface AWSApplicationAutoScalingAsync extends AWSApplicationAutoScaling
Interface for accessing Application Auto Scaling asynchronously. Each asynchronous method will return a Java Future object representing the asynchronous operation; overloads which accept anAsyncHandler
can be used to receive notification when an asynchronous operation completes.Application Auto Scaling is a general purpose Auto Scaling service for supported elastic AWS resources. With Application Auto Scaling, you can automatically scale your AWS resources, with an experience similar to that of Auto Scaling.
At this time, Application Auto Scaling only supports scaling Amazon ECS services.
For example, you can use Application Auto Scaling to accomplish the following tasks:
-
Define scaling policies for automatically adjusting your application’s resources
-
Scale your resources in response to CloudWatch alarms
-
View history of your scaling events
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Future<DeleteScalingPolicyResult>
deleteScalingPolicyAsync(DeleteScalingPolicyRequest deleteScalingPolicyRequest)
Deletes an Application Auto Scaling scaling policy that was previously created.Future<DeleteScalingPolicyResult>
deleteScalingPolicyAsync(DeleteScalingPolicyRequest deleteScalingPolicyRequest, AsyncHandler<DeleteScalingPolicyRequest,DeleteScalingPolicyResult> asyncHandler)
Deletes an Application Auto Scaling scaling policy that was previously created.Future<DeregisterScalableTargetResult>
deregisterScalableTargetAsync(DeregisterScalableTargetRequest deregisterScalableTargetRequest)
Deregisters a scalable target that was previously registered.Future<DeregisterScalableTargetResult>
deregisterScalableTargetAsync(DeregisterScalableTargetRequest deregisterScalableTargetRequest, AsyncHandler<DeregisterScalableTargetRequest,DeregisterScalableTargetResult> asyncHandler)
Deregisters a scalable target that was previously registered.Future<DescribeScalableTargetsResult>
describeScalableTargetsAsync(DescribeScalableTargetsRequest describeScalableTargetsRequest)
Provides descriptive information for scalable targets with a specified service namespace.Future<DescribeScalableTargetsResult>
describeScalableTargetsAsync(DescribeScalableTargetsRequest describeScalableTargetsRequest, AsyncHandler<DescribeScalableTargetsRequest,DescribeScalableTargetsResult> asyncHandler)
Provides descriptive information for scalable targets with a specified service namespace.Future<DescribeScalingActivitiesResult>
describeScalingActivitiesAsync(DescribeScalingActivitiesRequest describeScalingActivitiesRequest)
Provides descriptive information for scaling activities with a specified service namespace.Future<DescribeScalingActivitiesResult>
describeScalingActivitiesAsync(DescribeScalingActivitiesRequest describeScalingActivitiesRequest, AsyncHandler<DescribeScalingActivitiesRequest,DescribeScalingActivitiesResult> asyncHandler)
Provides descriptive information for scaling activities with a specified service namespace.Future<DescribeScalingPoliciesResult>
describeScalingPoliciesAsync(DescribeScalingPoliciesRequest describeScalingPoliciesRequest)
Provides descriptive information for scaling policies with a specified service namespace.Future<DescribeScalingPoliciesResult>
describeScalingPoliciesAsync(DescribeScalingPoliciesRequest describeScalingPoliciesRequest, AsyncHandler<DescribeScalingPoliciesRequest,DescribeScalingPoliciesResult> asyncHandler)
Provides descriptive information for scaling policies with a specified service namespace.Future<PutScalingPolicyResult>
putScalingPolicyAsync(PutScalingPolicyRequest putScalingPolicyRequest)
Creates or updates a policy for an existing Application Auto Scaling scalable target.Future<PutScalingPolicyResult>
putScalingPolicyAsync(PutScalingPolicyRequest putScalingPolicyRequest, AsyncHandler<PutScalingPolicyRequest,PutScalingPolicyResult> asyncHandler)
Creates or updates a policy for an existing Application Auto Scaling scalable target.Future<RegisterScalableTargetResult>
registerScalableTargetAsync(RegisterScalableTargetRequest registerScalableTargetRequest)
Registers or updates a scalable target.Future<RegisterScalableTargetResult>
registerScalableTargetAsync(RegisterScalableTargetRequest registerScalableTargetRequest, AsyncHandler<RegisterScalableTargetRequest,RegisterScalableTargetResult> asyncHandler)
Registers or updates a scalable target.-
Methods inherited from interface com.amazonaws.services.applicationautoscaling.AWSApplicationAutoScaling
deleteScalingPolicy, deregisterScalableTarget, describeScalableTargets, describeScalingActivities, describeScalingPolicies, getCachedResponseMetadata, putScalingPolicy, registerScalableTarget, setEndpoint, setRegion, shutdown
-
-
-
-
Method Detail
-
deleteScalingPolicyAsync
Future<DeleteScalingPolicyResult> deleteScalingPolicyAsync(DeleteScalingPolicyRequest deleteScalingPolicyRequest)
Deletes an Application Auto Scaling scaling policy that was previously created. If you are no longer using a scaling policy, you can delete it with this operation.
Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm, even if it no longer has an associated action.
To create a new scaling policy or update an existing one, see PutScalingPolicy.
- Parameters:
deleteScalingPolicyRequest
-- Returns:
- A Java Future containing the result of the DeleteScalingPolicy operation returned by the service.
-
deleteScalingPolicyAsync
Future<DeleteScalingPolicyResult> deleteScalingPolicyAsync(DeleteScalingPolicyRequest deleteScalingPolicyRequest, AsyncHandler<DeleteScalingPolicyRequest,DeleteScalingPolicyResult> asyncHandler)
Deletes an Application Auto Scaling scaling policy that was previously created. If you are no longer using a scaling policy, you can delete it with this operation.
Deleting a policy deletes the underlying alarm action, but does not delete the CloudWatch alarm, even if it no longer has an associated action.
To create a new scaling policy or update an existing one, see PutScalingPolicy.
- Parameters:
deleteScalingPolicyRequest
-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 DeleteScalingPolicy operation returned by the service.
-
deregisterScalableTargetAsync
Future<DeregisterScalableTargetResult> deregisterScalableTargetAsync(DeregisterScalableTargetRequest deregisterScalableTargetRequest)
Deregisters a scalable target that was previously registered. If you are no longer using a scalable target, you can delete it with this operation. When you deregister a scalable target, all of the scaling policies that are associated with that scalable target are deleted.
To create a new scalable target or update an existing one, see RegisterScalableTarget.
- Parameters:
deregisterScalableTargetRequest
-- Returns:
- A Java Future containing the result of the DeregisterScalableTarget operation returned by the service.
-
deregisterScalableTargetAsync
Future<DeregisterScalableTargetResult> deregisterScalableTargetAsync(DeregisterScalableTargetRequest deregisterScalableTargetRequest, AsyncHandler<DeregisterScalableTargetRequest,DeregisterScalableTargetResult> asyncHandler)
Deregisters a scalable target that was previously registered. If you are no longer using a scalable target, you can delete it with this operation. When you deregister a scalable target, all of the scaling policies that are associated with that scalable target are deleted.
To create a new scalable target or update an existing one, see RegisterScalableTarget.
- Parameters:
deregisterScalableTargetRequest
-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 DeregisterScalableTarget operation returned by the service.
-
describeScalableTargetsAsync
Future<DescribeScalableTargetsResult> describeScalableTargetsAsync(DescribeScalableTargetsRequest describeScalableTargetsRequest)
Provides descriptive information for scalable targets with a specified service namespace.
You can filter the results in a service namespace with the
ResourceIds
andScalableDimension
parameters.To create a new scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.
- Parameters:
describeScalableTargetsRequest
-- Returns:
- A Java Future containing the result of the DescribeScalableTargets operation returned by the service.
-
describeScalableTargetsAsync
Future<DescribeScalableTargetsResult> describeScalableTargetsAsync(DescribeScalableTargetsRequest describeScalableTargetsRequest, AsyncHandler<DescribeScalableTargetsRequest,DescribeScalableTargetsResult> asyncHandler)
Provides descriptive information for scalable targets with a specified service namespace.
You can filter the results in a service namespace with the
ResourceIds
andScalableDimension
parameters.To create a new scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.
- Parameters:
describeScalableTargetsRequest
-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 DescribeScalableTargets operation returned by the service.
-
describeScalingActivitiesAsync
Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest describeScalingActivitiesRequest)
Provides descriptive information for scaling activities with a specified service namespace.
You can filter the results in a service namespace with the
ResourceId
andScalableDimension
parameters.Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the existing scaling policies for a service namespace, see DescribeScalingPolicies. To create a new scaling policy or update an existing one, see PutScalingPolicy.
- Parameters:
describeScalingActivitiesRequest
-- Returns:
- A Java Future containing the result of the DescribeScalingActivities operation returned by the service.
-
describeScalingActivitiesAsync
Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest describeScalingActivitiesRequest, AsyncHandler<DescribeScalingActivitiesRequest,DescribeScalingActivitiesResult> asyncHandler)
Provides descriptive information for scaling activities with a specified service namespace.
You can filter the results in a service namespace with the
ResourceId
andScalableDimension
parameters.Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the existing scaling policies for a service namespace, see DescribeScalingPolicies. To create a new scaling policy or update an existing one, see PutScalingPolicy.
- Parameters:
describeScalingActivitiesRequest
-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.
-
describeScalingPoliciesAsync
Future<DescribeScalingPoliciesResult> describeScalingPoliciesAsync(DescribeScalingPoliciesRequest describeScalingPoliciesRequest)
Provides descriptive information for scaling policies with a specified service namespace.
You can filter the results in a service namespace with the
ResourceId
,ScalableDimension
, andPolicyNames
parameters.To create a new scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.
- Parameters:
describeScalingPoliciesRequest
-- Returns:
- A Java Future containing the result of the DescribeScalingPolicies operation returned by the service.
-
describeScalingPoliciesAsync
Future<DescribeScalingPoliciesResult> describeScalingPoliciesAsync(DescribeScalingPoliciesRequest describeScalingPoliciesRequest, AsyncHandler<DescribeScalingPoliciesRequest,DescribeScalingPoliciesResult> asyncHandler)
Provides descriptive information for scaling policies with a specified service namespace.
You can filter the results in a service namespace with the
ResourceId
,ScalableDimension
, andPolicyNames
parameters.To create a new scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.
- Parameters:
describeScalingPoliciesRequest
-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 DescribeScalingPolicies operation returned by the service.
-
putScalingPolicyAsync
Future<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest putScalingPolicyRequest)
Creates or updates a policy for an existing Application Auto Scaling scalable target. Each scalable target is identified by service namespace, a resource ID, and a scalable dimension, and a scaling policy applies to a scalable target that is identified by those three attributes. You cannot create a scaling policy without first registering a scalable target with RegisterScalableTarget.
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.
You can view the existing scaling policies for a service namespace with DescribeScalingPolicies. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.
- Parameters:
putScalingPolicyRequest
-- Returns:
- A Java Future containing the result of the PutScalingPolicy operation returned by the service.
-
putScalingPolicyAsync
Future<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest putScalingPolicyRequest, AsyncHandler<PutScalingPolicyRequest,PutScalingPolicyResult> asyncHandler)
Creates or updates a policy for an existing Application Auto Scaling scalable target. Each scalable target is identified by service namespace, a resource ID, and a scalable dimension, and a scaling policy applies to a scalable target that is identified by those three attributes. You cannot create a scaling policy without first registering a scalable target with RegisterScalableTarget.
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.
You can view the existing scaling policies for a service namespace with DescribeScalingPolicies. If you are no longer using a scaling policy, you can delete it with DeleteScalingPolicy.
- Parameters:
putScalingPolicyRequest
-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.
-
registerScalableTargetAsync
Future<RegisterScalableTargetResult> registerScalableTargetAsync(RegisterScalableTargetRequest registerScalableTargetRequest)
Registers or updates a scalable target. A scalable target is a resource that can be scaled up or down with Application Auto Scaling. After you have registered a scalable target, you can use this command to update the minimum and maximum values for your scalable dimension.
At this time, Application Auto Scaling only supports scaling Amazon ECS services.
After you register a scalable target with Application Auto Scaling, you can create and apply scaling policies to it with PutScalingPolicy. You can view the existing scaling policies for a service namespace with DescribeScalableTargets. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.
- Parameters:
registerScalableTargetRequest
-- Returns:
- A Java Future containing the result of the RegisterScalableTarget operation returned by the service.
-
registerScalableTargetAsync
Future<RegisterScalableTargetResult> registerScalableTargetAsync(RegisterScalableTargetRequest registerScalableTargetRequest, AsyncHandler<RegisterScalableTargetRequest,RegisterScalableTargetResult> asyncHandler)
Registers or updates a scalable target. A scalable target is a resource that can be scaled up or down with Application Auto Scaling. After you have registered a scalable target, you can use this command to update the minimum and maximum values for your scalable dimension.
At this time, Application Auto Scaling only supports scaling Amazon ECS services.
After you register a scalable target with Application Auto Scaling, you can create and apply scaling policies to it with PutScalingPolicy. You can view the existing scaling policies for a service namespace with DescribeScalableTargets. If you are no longer using a scalable target, you can deregister it with DeregisterScalableTarget.
- Parameters:
registerScalableTargetRequest
-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 RegisterScalableTarget operation returned by the service.
-
-