@ThreadSafe @Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AWSAutoScalingPlansClient extends AmazonWebServiceClient implements AWSAutoScalingPlans
Use AWS Auto Scaling to quickly discover all the scalable AWS resources for your application and configure dynamic scaling and predictive scaling for your resources using scaling plans. Use this service in conjunction with the Amazon EC2 Auto Scaling, Application Auto Scaling, Amazon CloudWatch, and AWS CloudFormation services.
Currently, predictive scaling is only available for Amazon EC2 Auto Scaling groups.
For more information 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_METRIC
ENDPOINT_PREFIX
addRequestHandler, addRequestHandler, configureRegion, getClientConfiguration, getEndpointPrefix, getMonitoringListeners, getRequestMetricsCollector, getServiceName, getSignerByURI, getSignerOverride, getSignerRegionOverride, getTimeOffset, makeImmutable, removeRequestHandler, removeRequestHandler, setEndpoint, setEndpoint, setRegion, setServiceNameIntern, setSignerRegionOverride, setTimeOffset, shutdown, withEndpoint, withRegion, withRegion, withTimeOffset
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
shutdown
public static AWSAutoScalingPlansClientBuilder builder()
public CreateScalingPlanResult createScalingPlan(CreateScalingPlanRequest request)
Creates a scaling plan.
createScalingPlan
in interface AWSAutoScalingPlans
createScalingPlanRequest
- ValidationException
- An exception was thrown for a validation issue. Review the parameters provided.LimitExceededException
- Your account exceeded a limit. This exception is thrown when a per-account resource limit is exceeded.ConcurrentUpdateException
- Concurrent updates caused an exception, for example, if you request an update to a scaling plan that
already has a pending update.InternalServiceException
- The service encountered an internal error.public DeleteScalingPlanResult deleteScalingPlan(DeleteScalingPlanRequest request)
Deletes 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.
deleteScalingPlan
in interface AWSAutoScalingPlans
deleteScalingPlanRequest
- ValidationException
- An exception was thrown for a validation issue. Review the parameters provided.ObjectNotFoundException
- The specified object could not be found.ConcurrentUpdateException
- Concurrent updates caused an exception, for example, if you request an update to a scaling plan that
already has a pending update.InternalServiceException
- The service encountered an internal error.public DescribeScalingPlanResourcesResult describeScalingPlanResources(DescribeScalingPlanResourcesRequest request)
Describes the scalable resources in the specified scaling plan.
describeScalingPlanResources
in interface AWSAutoScalingPlans
describeScalingPlanResourcesRequest
- ValidationException
- An exception was thrown for a validation issue. Review the parameters provided.InvalidNextTokenException
- The token provided is not valid.ConcurrentUpdateException
- Concurrent updates caused an exception, for example, if you request an update to a scaling plan that
already has a pending update.InternalServiceException
- The service encountered an internal error.public DescribeScalingPlansResult describeScalingPlans(DescribeScalingPlansRequest request)
Describes one or more of your scaling plans.
describeScalingPlans
in interface AWSAutoScalingPlans
describeScalingPlansRequest
- ValidationException
- An exception was thrown for a validation issue. Review the parameters provided.InvalidNextTokenException
- The token provided is not valid.ConcurrentUpdateException
- Concurrent updates caused an exception, for example, if you request an update to a scaling plan that
already has a pending update.InternalServiceException
- The service encountered an internal error.public GetScalingPlanResourceForecastDataResult getScalingPlanResourceForecastData(GetScalingPlanResourceForecastDataRequest request)
Retrieves 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.
getScalingPlanResourceForecastData
in interface AWSAutoScalingPlans
getScalingPlanResourceForecastDataRequest
- ValidationException
- An exception was thrown for a validation issue. Review the parameters provided.InternalServiceException
- The service encountered an internal error.public UpdateScalingPlanResult updateScalingPlan(UpdateScalingPlanRequest request)
Updates the specified scaling plan.
You cannot update a scaling plan if it is in the process of being created, updated, or deleted.
updateScalingPlan
in interface AWSAutoScalingPlans
updateScalingPlanRequest
- ValidationException
- An exception was thrown for a validation issue. Review the parameters provided.ConcurrentUpdateException
- Concurrent updates caused an exception, for example, if you request an update to a scaling plan that
already has a pending update.InternalServiceException
- The service encountered an internal error.ObjectNotFoundException
- The specified object could not be found.public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing the request.
getCachedResponseMetadata
in interface AWSAutoScalingPlans
request
- The originally executed request