@Generated(value="software.amazon.awssdk:codegen") public interface ApplicationAutoScalingAsyncClient extends SdkClient, SdkAutoCloseable
builder()
method.
With Application Auto Scaling, you can automatically scale your AWS resources. The experience is 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 Managing Throughput Capacity Automatically with DynamoDB Auto Scaling in the Amazon DynamoDB Developer Guide.
Amazon Aurora Replicas. For more information, see Using Application Auto Scaling with an Amazon Aurora DB Cluster.
For a list of supported regions, see AWS Regions and Endpoints: Application Auto Scaling in the AWS General Reference.
Modifier and Type | Field and Description |
---|---|
static String |
SERVICE_NAME |
Modifier and Type | Method and 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(Consumer<DeleteScalingPolicyRequest.Builder> deleteScalingPolicyRequest)
Deletes the specified Application Auto Scaling scaling policy.
|
default CompletableFuture<DeleteScalingPolicyResponse> |
deleteScalingPolicy(DeleteScalingPolicyRequest deleteScalingPolicyRequest)
Deletes the specified Application Auto Scaling scaling policy.
|
default CompletableFuture<DeleteScheduledActionResponse> |
deleteScheduledAction(Consumer<DeleteScheduledActionRequest.Builder> deleteScheduledActionRequest)
Deletes the specified Application Auto Scaling scheduled action.
|
default CompletableFuture<DeleteScheduledActionResponse> |
deleteScheduledAction(DeleteScheduledActionRequest deleteScheduledActionRequest)
Deletes the specified Application Auto Scaling scheduled action.
|
default CompletableFuture<DeregisterScalableTargetResponse> |
deregisterScalableTarget(Consumer<DeregisterScalableTargetRequest.Builder> deregisterScalableTargetRequest)
Deregisters a scalable target.
|
default CompletableFuture<DeregisterScalableTargetResponse> |
deregisterScalableTarget(DeregisterScalableTargetRequest deregisterScalableTargetRequest)
Deregisters a scalable target.
|
default CompletableFuture<DescribeScalableTargetsResponse> |
describeScalableTargets(Consumer<DescribeScalableTargetsRequest.Builder> describeScalableTargetsRequest)
Provides descriptive information about the scalable targets in the specified namespace.
|
default CompletableFuture<DescribeScalableTargetsResponse> |
describeScalableTargets(DescribeScalableTargetsRequest describeScalableTargetsRequest)
Provides descriptive information about the scalable targets in the specified namespace.
|
default DescribeScalableTargetsPublisher |
describeScalableTargetsPaginator(DescribeScalableTargetsRequest describeScalableTargetsRequest)
Provides descriptive information about the scalable targets in the specified namespace.
|
default CompletableFuture<DescribeScalingActivitiesResponse> |
describeScalingActivities(Consumer<DescribeScalingActivitiesRequest.Builder> describeScalingActivitiesRequest)
Provides descriptive information about the scaling activities in the specified namespace from the previous six
weeks.
|
default CompletableFuture<DescribeScalingActivitiesResponse> |
describeScalingActivities(DescribeScalingActivitiesRequest describeScalingActivitiesRequest)
Provides descriptive information about the scaling activities in the specified namespace from the previous six
weeks.
|
default DescribeScalingActivitiesPublisher |
describeScalingActivitiesPaginator(DescribeScalingActivitiesRequest describeScalingActivitiesRequest)
Provides descriptive information about the scaling activities in the specified namespace from the previous six
weeks.
|
default CompletableFuture<DescribeScalingPoliciesResponse> |
describeScalingPolicies(Consumer<DescribeScalingPoliciesRequest.Builder> describeScalingPoliciesRequest)
Describes the scaling policies for the specified service namespace.
|
default CompletableFuture<DescribeScalingPoliciesResponse> |
describeScalingPolicies(DescribeScalingPoliciesRequest describeScalingPoliciesRequest)
Describes the scaling policies for the specified service namespace.
|
default DescribeScalingPoliciesPublisher |
describeScalingPoliciesPaginator(DescribeScalingPoliciesRequest describeScalingPoliciesRequest)
Describes the scaling policies for the specified service namespace.
|
default CompletableFuture<DescribeScheduledActionsResponse> |
describeScheduledActions(Consumer<DescribeScheduledActionsRequest.Builder> describeScheduledActionsRequest)
Describes the scheduled actions for the specified service namespace.
|
default CompletableFuture<DescribeScheduledActionsResponse> |
describeScheduledActions(DescribeScheduledActionsRequest describeScheduledActionsRequest)
Describes the scheduled actions for the specified service namespace.
|
default CompletableFuture<PutScalingPolicyResponse> |
putScalingPolicy(Consumer<PutScalingPolicyRequest.Builder> putScalingPolicyRequest)
Creates or updates a policy for an Application Auto Scaling scalable target.
|
default CompletableFuture<PutScalingPolicyResponse> |
putScalingPolicy(PutScalingPolicyRequest putScalingPolicyRequest)
Creates or updates a policy for an Application Auto Scaling scalable target.
|
default CompletableFuture<PutScheduledActionResponse> |
putScheduledAction(Consumer<PutScheduledActionRequest.Builder> putScheduledActionRequest)
Creates or updates a scheduled action for an Application Auto Scaling scalable target.
|
default CompletableFuture<PutScheduledActionResponse> |
putScheduledAction(PutScheduledActionRequest putScheduledActionRequest)
Creates or updates a scheduled action for an Application Auto Scaling scalable target.
|
default CompletableFuture<RegisterScalableTargetResponse> |
registerScalableTarget(Consumer<RegisterScalableTargetRequest.Builder> registerScalableTargetRequest)
Registers or updates a scalable target.
|
default CompletableFuture<RegisterScalableTargetResponse> |
registerScalableTarget(RegisterScalableTargetRequest registerScalableTargetRequest)
Registers or updates a scalable target.
|
serviceName
close
static final String SERVICE_NAME
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<DeleteScalingPolicyResponse> deleteScalingPolicy(Consumer<DeleteScalingPolicyRequest.Builder> 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.Builder
avoiding the
need to create one manually via DeleteScalingPolicyRequest.builder()
deleteScalingPolicyRequest
- a Consumer
that will call methods on DeleteScalingPolicyRequest.Builder
.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<DeleteScheduledActionResponse> deleteScheduledAction(DeleteScheduledActionRequest deleteScheduledActionRequest)
Deletes the specified Application Auto Scaling scheduled action.
deleteScheduledActionRequest
- 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<DeleteScheduledActionResponse> deleteScheduledAction(Consumer<DeleteScheduledActionRequest.Builder> deleteScheduledActionRequest)
Deletes the specified Application Auto Scaling scheduled action.
DeleteScheduledActionRequest.Builder
avoiding the
need to create one manually via DeleteScheduledActionRequest.builder()
deleteScheduledActionRequest
- a Consumer
that will call methods on DeleteScheduledActionRequest.Builder
.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<DeregisterScalableTargetResponse> deregisterScalableTarget(Consumer<DeregisterScalableTargetRequest.Builder> 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.Builder
avoiding
the need to create one manually via DeregisterScalableTargetRequest.builder()
deregisterScalableTargetRequest
- a Consumer
that will call methods on DeregisterScalableTargetRequest.Builder
.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<DescribeScalableTargetsResponse> describeScalableTargets(Consumer<DescribeScalableTargetsRequest.Builder> 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.Builder
avoiding
the need to create one manually via DescribeScalableTargetsRequest.builder()
describeScalableTargetsRequest
- a Consumer
that will call methods on DescribeScalableTargetsRequest.Builder
.default DescribeScalableTargetsPublisher describeScalableTargetsPaginator(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.
This is a variant of
describeScalableTargets(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalableTargetsRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the forEach helper method
software.amazon.awssdk.services.applicationautoscaling.paginators.DescribeScalableTargetsPublisher publisher = client.describeScalableTargetsPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.applicationautoscaling.paginators.DescribeScalableTargetsPublisher publisher = client.describeScalableTargetsPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalableTargetsResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalableTargetsResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
describeScalableTargets(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalableTargetsRequest)
operation.
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<DescribeScalingActivitiesResponse> describeScalingActivities(Consumer<DescribeScalingActivitiesRequest.Builder> 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.Builder
avoiding
the need to create one manually via DescribeScalingActivitiesRequest.builder()
describeScalingActivitiesRequest
- a Consumer
that will call methods on DescribeScalingActivitiesRequest.Builder
.default DescribeScalingActivitiesPublisher describeScalingActivitiesPaginator(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.
This is a variant of
describeScalingActivities(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalingActivitiesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the forEach helper method
software.amazon.awssdk.services.applicationautoscaling.paginators.DescribeScalingActivitiesPublisher publisher = client.describeScalingActivitiesPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.applicationautoscaling.paginators.DescribeScalingActivitiesPublisher publisher = client.describeScalingActivitiesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalingActivitiesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalingActivitiesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
describeScalingActivities(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalingActivitiesRequest)
operation.
describeScalingActivitiesRequest
- default CompletableFuture<DescribeScalingPoliciesResponse> describeScalingPolicies(DescribeScalingPoliciesRequest describeScalingPoliciesRequest)
Describes the scaling policies for the specified service 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<DescribeScalingPoliciesResponse> describeScalingPolicies(Consumer<DescribeScalingPoliciesRequest.Builder> describeScalingPoliciesRequest)
Describes the scaling policies for the specified service 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.Builder
avoiding
the need to create one manually via DescribeScalingPoliciesRequest.builder()
describeScalingPoliciesRequest
- a Consumer
that will call methods on DescribeScalingPoliciesRequest.Builder
.default DescribeScalingPoliciesPublisher describeScalingPoliciesPaginator(DescribeScalingPoliciesRequest describeScalingPoliciesRequest)
Describes the scaling policies for the specified service 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.
This is a variant of
describeScalingPolicies(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalingPoliciesRequest)
operation. The return type is a custom publisher that can be subscribed to request a stream of response pages.
SDK will internally handle making service calls for you.
When the operation is called, an instance of this class is returned. At this point, no service calls are made yet
and so there is no guarantee that the request is valid. If there are errors in your request, you will see the
failures only after you start streaming the data. The subscribe method should be called as a request to start
streaming data. For more info, see
Publisher.subscribe(org.reactivestreams.Subscriber)
. Each call to the subscribe
method will result in a new Subscription
i.e., a new contract to stream data from the
starting request.
The following are few ways to use the response class:
1) Using the forEach helper method
software.amazon.awssdk.services.applicationautoscaling.paginators.DescribeScalingPoliciesPublisher publisher = client.describeScalingPoliciesPaginator(request);
CompletableFuture<Void> future = publisher.forEach(res -> { // Do something with the response });
future.get();
2) Using a custom subscriber
software.amazon.awssdk.services.applicationautoscaling.paginators.DescribeScalingPoliciesPublisher publisher = client.describeScalingPoliciesPaginator(request);
publisher.subscribe(new Subscriber<software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalingPoliciesResponse>() {
public void onSubscribe(org.reactivestreams.Subscriber subscription) { //... };
public void onNext(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalingPoliciesResponse response) { //... };
});
As the response is a publisher, it can work well with third party reactive streams implementations like RxJava2.
Note: If you prefer to have control on service calls, use the
describeScalingPolicies(software.amazon.awssdk.services.applicationautoscaling.model.DescribeScalingPoliciesRequest)
operation.
describeScalingPoliciesRequest
- default CompletableFuture<DescribeScheduledActionsResponse> describeScheduledActions(DescribeScheduledActionsRequest describeScheduledActionsRequest)
Describes the scheduled actions for the specified service namespace.
You can filter the results using the ResourceId
, ScalableDimension
, and
ScheduledActionNames
parameters.
To create a scheduled action or update an existing one, see PutScheduledAction. If you are no longer using a scheduled action, you can delete it using DeleteScheduledAction.
describeScheduledActionsRequest
- default CompletableFuture<DescribeScheduledActionsResponse> describeScheduledActions(Consumer<DescribeScheduledActionsRequest.Builder> describeScheduledActionsRequest)
Describes the scheduled actions for the specified service namespace.
You can filter the results using the ResourceId
, ScalableDimension
, and
ScheduledActionNames
parameters.
To create a scheduled action or update an existing one, see PutScheduledAction. If you are no longer using a scheduled action, you can delete it using DeleteScheduledAction.
DescribeScheduledActionsRequest.Builder
avoiding
the need to create one manually via DescribeScheduledActionsRequest.builder()
describeScheduledActionsRequest
- a Consumer
that will call methods on DescribeScheduledActionsRequest.Builder
.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<PutScalingPolicyResponse> putScalingPolicy(Consumer<PutScalingPolicyRequest.Builder> 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.Builder
avoiding the need
to create one manually via PutScalingPolicyRequest.builder()
putScalingPolicyRequest
- a Consumer
that will call methods on PutScalingPolicyRequest.Builder
.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<PutScheduledActionResponse> putScheduledAction(PutScheduledActionRequest putScheduledActionRequest)
Creates or updates a scheduled action for an Application Auto Scaling scalable target.
Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scheduled action applies to the scalable target identified by those three attributes. You cannot create a scheduled action without first registering a scalable target using RegisterScalableTarget.
To update an action, specify its name and the parameters that you want to change. If you don't specify start and end times, the old values are deleted. Any other parameters that you don't specify are not changed by this update request.
You can view the scheduled actions using DescribeScheduledActions. If you are no longer using a scheduled action, you can delete it using DeleteScheduledAction.
putScheduledActionRequest
- 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<PutScheduledActionResponse> putScheduledAction(Consumer<PutScheduledActionRequest.Builder> putScheduledActionRequest)
Creates or updates a scheduled action for an Application Auto Scaling scalable target.
Each scalable target is identified by a service namespace, resource ID, and scalable dimension. A scheduled action applies to the scalable target identified by those three attributes. You cannot create a scheduled action without first registering a scalable target using RegisterScalableTarget.
To update an action, specify its name and the parameters that you want to change. If you don't specify start and end times, the old values are deleted. Any other parameters that you don't specify are not changed by this update request.
You can view the scheduled actions using DescribeScheduledActions. If you are no longer using a scheduled action, you can delete it using DeleteScheduledAction.
PutScheduledActionRequest.Builder
avoiding the
need to create one manually via PutScheduledActionRequest.builder()
putScheduledActionRequest
- a Consumer
that will call methods on PutScheduledActionRequest.Builder
.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
- default CompletableFuture<RegisterScalableTargetResponse> registerScalableTarget(Consumer<RegisterScalableTargetRequest.Builder> 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.Builder
avoiding the
need to create one manually via RegisterScalableTargetRequest.builder()
registerScalableTargetRequest
- a Consumer
that will call methods on RegisterScalableTargetRequest.Builder
.Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.