@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAutoScalingPlansAsyncClient extends AWSAutoScalingPlansClient implements AWSAutoScalingPlansAsync
AsyncHandler can be used to receive
notification when an asynchronous operation completes.
Use AWS Auto Scaling to create scaling plans for your applications to automatically scale your scalable AWS resources.
API Summary
You can use the AWS Auto Scaling service API to accomplish the following tasks:
Create and manage scaling plans
Define target tracking scaling policies to dynamically scale your resources based on utilization
Scale Amazon EC2 Auto Scaling groups using predictive scaling and dynamic scaling to scale your Amazon EC2 capacity faster
Set minimum and maximum capacity limits
Retrieve information on existing scaling plans
Access current forecast data and historical forecast data for up to 56 days previous
To learn more about AWS Auto Scaling, including information about granting IAM users required permissions for AWS Auto Scaling actions, see the AWS Auto Scaling User Guide.
LOGGING_AWS_REQUEST_METRICENDPOINT_PREFIXbuilder, createScalingPlan, deleteScalingPlan, describeScalingPlanResources, describeScalingPlans, getCachedResponseMetadata, getScalingPlanResourceForecastData, updateScalingPlanaddRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, withEndpoint, withRegion, withRegion, withTimeOffsetequals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcreateScalingPlan, deleteScalingPlan, describeScalingPlanResources, describeScalingPlans, getCachedResponseMetadata, getScalingPlanResourceForecastData, updateScalingPlanpublic static AWSAutoScalingPlansAsyncClientBuilder asyncBuilder()
public ExecutorService getExecutorService()
public Future<CreateScalingPlanResult> createScalingPlanAsync(CreateScalingPlanRequest request)
AWSAutoScalingPlansAsyncCreates a scaling plan.
createScalingPlanAsync in interface AWSAutoScalingPlansAsyncpublic Future<CreateScalingPlanResult> createScalingPlanAsync(CreateScalingPlanRequest request, AsyncHandler<CreateScalingPlanRequest,CreateScalingPlanResult> asyncHandler)
AWSAutoScalingPlansAsyncCreates a scaling plan.
createScalingPlanAsync in interface AWSAutoScalingPlansAsyncasyncHandler - 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<DeleteScalingPlanResult> deleteScalingPlanAsync(DeleteScalingPlanRequest request)
AWSAutoScalingPlansAsyncDeletes the specified scaling plan.
Deleting a scaling plan deletes the underlying ScalingInstruction for all of the scalable resources that are covered by the plan.
If the plan has launched resources or has scaling activities in progress, you must delete those resources separately.
deleteScalingPlanAsync in interface AWSAutoScalingPlansAsyncpublic Future<DeleteScalingPlanResult> deleteScalingPlanAsync(DeleteScalingPlanRequest request, AsyncHandler<DeleteScalingPlanRequest,DeleteScalingPlanResult> asyncHandler)
AWSAutoScalingPlansAsyncDeletes the specified scaling plan.
Deleting a scaling plan deletes the underlying ScalingInstruction for all of the scalable resources that are covered by the plan.
If the plan has launched resources or has scaling activities in progress, you must delete those resources separately.
deleteScalingPlanAsync in interface AWSAutoScalingPlansAsyncasyncHandler - 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<DescribeScalingPlanResourcesResult> describeScalingPlanResourcesAsync(DescribeScalingPlanResourcesRequest request)
AWSAutoScalingPlansAsyncDescribes the scalable resources in the specified scaling plan.
describeScalingPlanResourcesAsync in interface AWSAutoScalingPlansAsyncpublic Future<DescribeScalingPlanResourcesResult> describeScalingPlanResourcesAsync(DescribeScalingPlanResourcesRequest request, AsyncHandler<DescribeScalingPlanResourcesRequest,DescribeScalingPlanResourcesResult> asyncHandler)
AWSAutoScalingPlansAsyncDescribes the scalable resources in the specified scaling plan.
describeScalingPlanResourcesAsync in interface AWSAutoScalingPlansAsyncasyncHandler - 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<DescribeScalingPlansResult> describeScalingPlansAsync(DescribeScalingPlansRequest request)
AWSAutoScalingPlansAsyncDescribes one or more of your scaling plans.
describeScalingPlansAsync in interface AWSAutoScalingPlansAsyncpublic Future<DescribeScalingPlansResult> describeScalingPlansAsync(DescribeScalingPlansRequest request, AsyncHandler<DescribeScalingPlansRequest,DescribeScalingPlansResult> asyncHandler)
AWSAutoScalingPlansAsyncDescribes one or more of your scaling plans.
describeScalingPlansAsync in interface AWSAutoScalingPlansAsyncasyncHandler - 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<GetScalingPlanResourceForecastDataResult> getScalingPlanResourceForecastDataAsync(GetScalingPlanResourceForecastDataRequest request)
AWSAutoScalingPlansAsyncRetrieves the forecast data for a scalable resource.
Capacity forecasts are represented as predicted values, or data points, that are calculated using historical data points from a specified CloudWatch load metric. Data points are available for up to 56 days.
getScalingPlanResourceForecastDataAsync in interface AWSAutoScalingPlansAsyncpublic Future<GetScalingPlanResourceForecastDataResult> getScalingPlanResourceForecastDataAsync(GetScalingPlanResourceForecastDataRequest request, AsyncHandler<GetScalingPlanResourceForecastDataRequest,GetScalingPlanResourceForecastDataResult> asyncHandler)
AWSAutoScalingPlansAsyncRetrieves the forecast data for a scalable resource.
Capacity forecasts are represented as predicted values, or data points, that are calculated using historical data points from a specified CloudWatch load metric. Data points are available for up to 56 days.
getScalingPlanResourceForecastDataAsync in interface AWSAutoScalingPlansAsyncasyncHandler - 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<UpdateScalingPlanResult> updateScalingPlanAsync(UpdateScalingPlanRequest request)
AWSAutoScalingPlansAsyncUpdates the specified scaling plan.
You cannot update a scaling plan if it is in the process of being created, updated, or deleted.
updateScalingPlanAsync in interface AWSAutoScalingPlansAsyncpublic Future<UpdateScalingPlanResult> updateScalingPlanAsync(UpdateScalingPlanRequest request, AsyncHandler<UpdateScalingPlanRequest,UpdateScalingPlanResult> asyncHandler)
AWSAutoScalingPlansAsyncUpdates the specified scaling plan.
You cannot update a scaling plan if it is in the process of being created, updated, or deleted.
updateScalingPlanAsync in interface AWSAutoScalingPlansAsyncasyncHandler - 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 AWSAutoScalingPlansshutdown in class AWSAutoScalingPlansClient