@ThreadSafe public class AWSApplicationAutoScalingAsyncClient extends AWSApplicationAutoScalingClient implements AWSApplicationAutoScalingAsync
AsyncHandler
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.
Application Auto Scaling supports scaling the following AWS resources:
Amazon ECS services
Amazon EC2 Spot fleet instances
You can use Application Auto Scaling to accomplish the following tasks:
Define scaling policies for automatically adjusting your AWS resources
Scale your resources in response to CloudWatch alarms
View history of your scaling events
Application Auto Scaling is available in the following regions:
us-east-1
us-west-1
us-west-2
ap-southeast-1
ap-southeast-2
ap-northeast-1
eu-central-1
eu-west-1
LOGGING_AWS_REQUEST_METRIC
ENDPOINT_PREFIX
Constructor and Description |
---|
AWSApplicationAutoScalingAsyncClient()
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling.
|
AWSApplicationAutoScalingAsyncClient(AWSCredentials awsCredentials)
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified
AWS account credentials.
|
AWSApplicationAutoScalingAsyncClient(AWSCredentials awsCredentials,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified
AWS account credentials, executor service, and client configuration options.
|
AWSApplicationAutoScalingAsyncClient(AWSCredentials awsCredentials,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified
AWS account credentials and executor service.
|
AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified
AWS account credentials provider.
|
AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the provided AWS
account credentials provider and client configuration options.
|
AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ClientConfiguration clientConfiguration,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified
AWS account credentials provider, executor service, and client configuration options.
|
AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider,
ExecutorService executorService)
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling using the specified
AWS account credentials provider and executor service.
|
AWSApplicationAutoScalingAsyncClient(ClientConfiguration clientConfiguration)
Constructs a new asynchronous client to invoke service methods on Application Auto Scaling.
|
deleteScalingPolicy, deregisterScalableTarget, describeScalableTargets, describeScalingActivities, describeScalingPolicies, getCachedResponseMetadata, putScalingPolicy, registerScalableTarget
addRequestHandler, addRequestHandler, configureRegion, getEndpointPrefix, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deleteScalingPolicy, deregisterScalableTarget, describeScalableTargets, describeScalingActivities, describeScalingPolicies, getCachedResponseMetadata, putScalingPolicy, registerScalableTarget, setEndpoint, setRegion
public AWSApplicationAutoScalingAsyncClient()
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
public AWSApplicationAutoScalingAsyncClient(ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections()
.
clientConfiguration
- The client configuration options controlling how this client connects to Application Auto Scaling (ex:
proxy settings, retry counts, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSApplicationAutoScalingAsyncClient(AWSCredentials awsCredentials)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.Executors.newFixedThreadPool(int)
public AWSApplicationAutoScalingAsyncClient(AWSCredentials awsCredentials, ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.public AWSApplicationAutoScalingAsyncClient(AWSCredentials awsCredentials, ClientConfiguration clientConfiguration, ExecutorService executorService)
awsCredentials
- The AWS credentials (access key ID and secret key) to use when authenticating with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.public AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider)
Asynchronous methods are delegated to a fixed-size thread pool containing 50 threads (to match the default maximum number of concurrent connections to the service).
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.Executors.newFixedThreadPool(int)
public AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration)
Asynchronous methods are delegated to a fixed-size thread pool containing a number of threads equal to the
maximum number of concurrent connections configured via ClientConfiguration.getMaxConnections()
.
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).DefaultAWSCredentialsProviderChain
,
Executors.newFixedThreadPool(int)
public AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.executorService
- The executor service by which all asynchronous requests will be executed.public AWSApplicationAutoScalingAsyncClient(AWSCredentialsProvider awsCredentialsProvider, ClientConfiguration clientConfiguration, ExecutorService executorService)
awsCredentialsProvider
- The AWS credentials provider which will provide credentials to authenticate requests with AWS services.clientConfiguration
- Client configuration options (ex: max retry limit, proxy settings, etc).executorService
- The executor service by which all asynchronous requests will be executed.public ExecutorService getExecutorService()
public Future<DeleteScalingPolicyResult> deleteScalingPolicyAsync(DeleteScalingPolicyRequest request)
AWSApplicationAutoScalingAsync
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 associated with the scaling policy, even if it no longer has an associated action.
To create a new scaling policy or update an existing one, see PutScalingPolicy.
deleteScalingPolicyAsync
in interface AWSApplicationAutoScalingAsync
public Future<DeleteScalingPolicyResult> deleteScalingPolicyAsync(DeleteScalingPolicyRequest request, AsyncHandler<DeleteScalingPolicyRequest,DeleteScalingPolicyResult> asyncHandler)
AWSApplicationAutoScalingAsync
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 associated with the scaling policy, even if it no longer has an associated action.
To create a new scaling policy or update an existing one, see PutScalingPolicy.
deleteScalingPolicyAsync
in interface AWSApplicationAutoScalingAsync
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.public Future<DeregisterScalableTargetResult> deregisterScalableTargetAsync(DeregisterScalableTargetRequest request)
AWSApplicationAutoScalingAsync
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.
deregisterScalableTargetAsync
in interface AWSApplicationAutoScalingAsync
public Future<DeregisterScalableTargetResult> deregisterScalableTargetAsync(DeregisterScalableTargetRequest request, AsyncHandler<DeregisterScalableTargetRequest,DeregisterScalableTargetResult> asyncHandler)
AWSApplicationAutoScalingAsync
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.
deregisterScalableTargetAsync
in interface AWSApplicationAutoScalingAsync
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.public Future<DescribeScalableTargetsResult> describeScalableTargetsAsync(DescribeScalableTargetsRequest request)
AWSApplicationAutoScalingAsync
Provides descriptive information for scalable targets with a specified service namespace.
You can filter the results in a service namespace with the ResourceIds
and
ScalableDimension
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.
describeScalableTargetsAsync
in interface AWSApplicationAutoScalingAsync
public Future<DescribeScalableTargetsResult> describeScalableTargetsAsync(DescribeScalableTargetsRequest request, AsyncHandler<DescribeScalableTargetsRequest,DescribeScalableTargetsResult> asyncHandler)
AWSApplicationAutoScalingAsync
Provides descriptive information for scalable targets with a specified service namespace.
You can filter the results in a service namespace with the ResourceIds
and
ScalableDimension
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.
describeScalableTargetsAsync
in interface AWSApplicationAutoScalingAsync
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.public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request)
AWSApplicationAutoScalingAsync
Provides descriptive information for scaling activities with a specified service namespace for the previous six weeks.
You can filter the results in a service namespace with the ResourceId
and
ScalableDimension
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.
describeScalingActivitiesAsync
in interface AWSApplicationAutoScalingAsync
public Future<DescribeScalingActivitiesResult> describeScalingActivitiesAsync(DescribeScalingActivitiesRequest request, AsyncHandler<DescribeScalingActivitiesRequest,DescribeScalingActivitiesResult> asyncHandler)
AWSApplicationAutoScalingAsync
Provides descriptive information for scaling activities with a specified service namespace for the previous six weeks.
You can filter the results in a service namespace with the ResourceId
and
ScalableDimension
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.
describeScalingActivitiesAsync
in interface AWSApplicationAutoScalingAsync
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.public Future<DescribeScalingPoliciesResult> describeScalingPoliciesAsync(DescribeScalingPoliciesRequest request)
AWSApplicationAutoScalingAsync
Provides descriptive information for scaling policies with a specified service namespace.
You can filter the results in a service namespace with the ResourceId
,
ScalableDimension
, and PolicyNames
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.
describeScalingPoliciesAsync
in interface AWSApplicationAutoScalingAsync
public Future<DescribeScalingPoliciesResult> describeScalingPoliciesAsync(DescribeScalingPoliciesRequest request, AsyncHandler<DescribeScalingPoliciesRequest,DescribeScalingPoliciesResult> asyncHandler)
AWSApplicationAutoScalingAsync
Provides descriptive information for scaling policies with a specified service namespace.
You can filter the results in a service namespace with the ResourceId
,
ScalableDimension
, and PolicyNames
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.
describeScalingPoliciesAsync
in interface AWSApplicationAutoScalingAsync
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.public Future<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest request)
AWSApplicationAutoScalingAsync
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.
putScalingPolicyAsync
in interface AWSApplicationAutoScalingAsync
public Future<PutScalingPolicyResult> putScalingPolicyAsync(PutScalingPolicyRequest request, AsyncHandler<PutScalingPolicyRequest,PutScalingPolicyResult> asyncHandler)
AWSApplicationAutoScalingAsync
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.
putScalingPolicyAsync
in interface AWSApplicationAutoScalingAsync
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.public Future<RegisterScalableTargetResult> registerScalableTargetAsync(RegisterScalableTargetRequest request)
AWSApplicationAutoScalingAsync
Registers or updates a scalable target. A scalable target is a resource that can be scaled out or in with Application Auto Scaling. After you have registered a scalable target, you can use this operation to update the minimum and maximum values for your scalable dimension.
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.
registerScalableTargetAsync
in interface AWSApplicationAutoScalingAsync
public Future<RegisterScalableTargetResult> registerScalableTargetAsync(RegisterScalableTargetRequest request, AsyncHandler<RegisterScalableTargetRequest,RegisterScalableTargetResult> asyncHandler)
AWSApplicationAutoScalingAsync
Registers or updates a scalable target. A scalable target is a resource that can be scaled out or in with Application Auto Scaling. After you have registered a scalable target, you can use this operation to update the minimum and maximum values for your scalable dimension.
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.
registerScalableTargetAsync
in interface AWSApplicationAutoScalingAsync
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.public void shutdown()
getExecutorService().shutdown()
followed by getExecutorService().awaitTermination()
prior to
calling this method.shutdown
in interface AWSApplicationAutoScaling
shutdown
in class AmazonWebServiceClient
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.