aws-cdk-lib.aws_applicationautoscaling.ScalingInterval

interface ScalingInterval

LanguageType name
.NETAmazon.CDK.AWS.ApplicationAutoScaling.ScalingInterval
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsapplicationautoscaling#ScalingInterval
Javasoftware.amazon.awscdk.services.applicationautoscaling.ScalingInterval
Pythonaws_cdk.aws_applicationautoscaling.ScalingInterval
TypeScript (source)aws-cdk-lib » aws_applicationautoscaling » ScalingInterval

A range of metric values in which to apply a certain scaling operation.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_applicationautoscaling as appscaling } from 'aws-cdk-lib';
const scalingInterval: appscaling.ScalingInterval = {
  change: 123,

  // the properties below are optional
  lower: 123,
  upper: 123,
};

Properties

NameTypeDescription
changenumberThe capacity adjustment to apply in this interval.
lower?numberThe lower bound of the interval.
upper?numberThe upper bound of the interval.

change

Type: number

The capacity adjustment to apply in this interval.

The number is interpreted differently based on AdjustmentType:

  • ChangeInCapacity: add the adjustment to the current capacity. The number can be positive or negative.
  • PercentChangeInCapacity: add or remove the given percentage of the current capacity to itself. The number can be in the range [-100..100].
  • ExactCapacity: set the capacity to this number. The number must be positive.

lower?

Type: number (optional, default: Threshold automatically derived from neighbouring intervals)

The lower bound of the interval.

The scaling adjustment will be applied if the metric is higher than this value.


upper?

Type: number (optional, default: Threshold automatically derived from neighbouring intervals)

The upper bound of the interval.

The scaling adjustment will be applied if the metric is lower than this value.