AutoCloseable
@Generated("software.amazon.awssdk:codegen") public interface ApplicationAutoScalingAsyncClient extends AutoCloseable
builder()
method.
With Application Auto Scaling, you can automatically scale your AWS resources. The experience similar to that of Auto Scaling. You can use Application Auto Scaling to accomplish the following tasks:
Define scaling policies to automatically scale your AWS resources
Scale your resources in response to CloudWatch alarms
View the history of your scaling events
Application Auto Scaling can scale the following AWS resources:
Amazon ECS services. For more information, see Service Auto Scaling in the Amazon EC2 Container Service Developer Guide.
Amazon EC2 Spot fleets. For more information, see Automatic Scaling for Spot Fleet in the Amazon EC2 User Guide.
Amazon EMR clusters. For more information, see Using Automatic Scaling in Amazon EMR in the Amazon EMR Management Guide.
AppStream 2.0 fleets. For more information, see Fleet Auto Scaling for Amazon AppStream 2.0 in the Amazon AppStream 2.0 Developer Guide.
Provisioned read and write capacity for Amazon DynamoDB tables and global secondary indexes. For more information, see Auto Scaling for DynamoDB in the Amazon DynamoDB Developer Guide.
For a list of supported regions, see AWS Regions and Endpoints: Application Auto Scaling in the AWS General Reference.
Modifier and Type | Method | Description |
---|---|---|
static ApplicationAutoScalingAsyncClientBuilder |
builder() |
Create a builder that can be used to configure and create a
ApplicationAutoScalingAsyncClient . |
static ApplicationAutoScalingAsyncClient |
create() |
Create a
ApplicationAutoScalingAsyncClient with the region loaded from the
DefaultAwsRegionProviderChain and credentials loaded from the
DefaultCredentialsProvider . |
default CompletableFuture<DeleteScalingPolicyResponse> |
deleteScalingPolicy(DeleteScalingPolicyRequest deleteScalingPolicyRequest) |
Deletes the specified Application Auto Scaling scaling policy.
|
default CompletableFuture<DeregisterScalableTargetResponse> |
deregisterScalableTarget(DeregisterScalableTargetRequest deregisterScalableTargetRequest) |
Deregisters a scalable target.
|
default CompletableFuture<DescribeScalableTargetsResponse> |
describeScalableTargets(DescribeScalableTargetsRequest describeScalableTargetsRequest) |
Provides descriptive information about the scalable targets in the specified namespace.
|
default CompletableFuture<DescribeScalingActivitiesResponse> |
describeScalingActivities(DescribeScalingActivitiesRequest describeScalingActivitiesRequest) |
Provides descriptive information about the scaling activities in the specified namespace from the previous six
weeks.
|
default CompletableFuture<DescribeScalingPoliciesResponse> |
describeScalingPolicies(DescribeScalingPoliciesRequest describeScalingPoliciesRequest) |
Provides descriptive information about the scaling policies in the specified namespace.
|
default CompletableFuture<PutScalingPolicyResponse> |
putScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest) |
Creates or updates a policy for an Application Auto Scaling scalable target.
|
default CompletableFuture<RegisterScalableTargetResponse> |
registerScalableTarget(RegisterScalableTargetRequest registerScalableTargetRequest) |
Registers or updates a scalable target.
|
close
static ApplicationAutoScalingAsyncClient create()
ApplicationAutoScalingAsyncClient
with the region loaded from the
DefaultAwsRegionProviderChain
and credentials loaded from the
DefaultCredentialsProvider
.static ApplicationAutoScalingAsyncClientBuilder builder()
ApplicationAutoScalingAsyncClient
.default CompletableFuture<DeleteScalingPolicyResponse> deleteScalingPolicy(DeleteScalingPolicyRequest deleteScalingPolicyRequest)
Deletes the specified Application Auto Scaling scaling policy.
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 scaling policy or update an existing one, see PutScalingPolicy.
deleteScalingPolicyRequest
- Put
or
Register
API operation, which depends on the existence of a scalable target, this exception
is thrown if the scalable target with the specified service namespace, resource ID, and scalable
dimension does not exist. For any Delete
or Deregister
API operation, this
exception is thrown if the resource that is to be deleted or deregistered cannot be found.default CompletableFuture<DeregisterScalableTargetResponse> deregisterScalableTarget(DeregisterScalableTargetRequest deregisterScalableTargetRequest)
Deregisters a scalable target.
Deregistering a scalable target deletes the scaling policies that are associated with it.
To create a scalable target or update an existing one, see RegisterScalableTarget.
deregisterScalableTargetRequest
- Put
or
Register
API operation, which depends on the existence of a scalable target, this exception
is thrown if the scalable target with the specified service namespace, resource ID, and scalable
dimension does not exist. For any Delete
or Deregister
API operation, this
exception is thrown if the resource that is to be deleted or deregistered cannot be found.default CompletableFuture<DescribeScalableTargetsResponse> describeScalableTargets(DescribeScalableTargetsRequest describeScalableTargetsRequest)
Provides descriptive information about the scalable targets in the specified namespace.
You can filter the results using the ResourceIds
and ScalableDimension
parameters.
To create a scalable target or update an existing one, see RegisterScalableTarget. If you are no longer using a scalable target, you can deregister it using DeregisterScalableTarget.
describeScalableTargetsRequest
- default CompletableFuture<DescribeScalingActivitiesResponse> describeScalingActivities(DescribeScalingActivitiesRequest describeScalingActivitiesRequest)
Provides descriptive information about the scaling activities in the specified namespace from the previous six weeks.
You can filter the results using the ResourceId
and ScalableDimension
parameters.
Scaling activities are triggered by CloudWatch alarms that are associated with scaling policies. To view the scaling policies for a service namespace, see DescribeScalingPolicies. To create a scaling policy or update an existing one, see PutScalingPolicy.
describeScalingActivitiesRequest
- default CompletableFuture<DescribeScalingPoliciesResponse> describeScalingPolicies(DescribeScalingPoliciesRequest describeScalingPoliciesRequest)
Provides descriptive information about the scaling policies in the specified namespace.
You can filter the results using the ResourceId
, ScalableDimension
, and
PolicyNames
parameters.
To create a scaling policy or update an existing one, see PutScalingPolicy. If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy.
describeScalingPoliciesRequest
- default CompletableFuture<PutScalingPolicyResponse> putScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest)
Creates or updates a policy for an Application Auto Scaling scalable target.
Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scaling policy applies to the scalable target identified by those three attributes. You cannot create a scaling policy without first registering a scalable target using RegisterScalableTarget.
To update a policy, specify its policy name and the parameters that you want to change. Any parameters that you don't specify are not changed by this update request.
You can view the scaling policies for a service namespace using DescribeScalingPolicies. If you are no longer using a scaling policy, you can delete it using DeleteScalingPolicy.
putScalingPolicyRequest
- Put
or
Register
API operation, which depends on the existence of a scalable target, this exception
is thrown if the scalable target with the specified service namespace, resource ID, and scalable
dimension does not exist. For any Delete
or Deregister
API operation, this
exception is thrown if the resource that is to be deleted or deregistered cannot be found.default CompletableFuture<RegisterScalableTargetResponse> registerScalableTarget(RegisterScalableTargetRequest registerScalableTargetRequest)
Registers or updates a scalable target. A scalable target is a resource that Application Auto Scaling can scale out or scale in. 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, you can create and apply scaling policies using PutScalingPolicy. You can view the scaling policies for a service namespace using DescribeScalableTargets. If you are no longer using a scalable target, you can deregister it using DeregisterScalableTarget.
registerScalableTargetRequest
- Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.