AdjustmentType
- class aws_cdk.aws_autoscaling.AdjustmentType(value)
Bases:
Enum
How adjustment numbers are interpreted.
- ExampleMetadata:
infused
Example:
# auto_scaling_group: autoscaling.AutoScalingGroup worker_utilization_metric = cloudwatch.Metric( namespace="MyService", metric_name="WorkerUtilization" ) auto_scaling_group.scale_on_metric("ScaleToCPU", metric=worker_utilization_metric, scaling_steps=[autoscaling.ScalingInterval(upper=10, change=-1), autoscaling.ScalingInterval(lower=50, change=+1), autoscaling.ScalingInterval(lower=70, change=+3) ], # Change this to AdjustmentType.PERCENT_CHANGE_IN_CAPACITY to interpret the # 'change' numbers before as percentages instead of capacity counts. adjustment_type=autoscaling.AdjustmentType.CHANGE_IN_CAPACITY )
Attributes
- CHANGE_IN_CAPACITY
Add the adjustment number to the current capacity.
A positive number increases capacity, a negative number decreases capacity.
- EXACT_CAPACITY
Make the capacity equal to the exact number given.
- PERCENT_CHANGE_IN_CAPACITY
Add this percentage of the current capacity to itself.
The number must be between -100 and 100; a positive number increases capacity and a negative number decreases it.