AdjustmentType¶
-
class
aws_cdk.aws_applicationautoscaling.
AdjustmentType
(value)¶ Bases:
enum.Enum
How adjustment numbers are interpreted.
- ExampleMetadata
infused
Example:
# capacity: ScalableAttribute # cpu_utilization: cloudwatch.Metric capacity.scale_on_metric("ScaleToCPU", metric=cpu_utilization, scaling_steps=[appscaling.ScalingInterval(upper=10, change=-1), appscaling.ScalingInterval(lower=50, change=+1), appscaling.ScalingInterval(lower=70, change=+3) ], # Change this to AdjustmentType.PercentChangeInCapacity to interpret the # 'change' numbers before as percentages instead of capacity counts. adjustment_type=appscaling.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.