Enum AdjustmentType

All Implemented Interfaces:
Serializable, Comparable<AdjustmentType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:45.161Z") @Stability(Stable) public enum AdjustmentType extends Enum<AdjustmentType>
How adjustment numbers are interpreted.


 AutoScalingGroup autoScalingGroup;
 Metric workerUtilizationMetric = Metric.Builder.create()
 autoScalingGroup.scaleOnMetric("ScaleToCPU", BasicStepScalingPolicyProps.builder()
         .scalingSteps(List.of(ScalingInterval.builder().upper(10).change(-1).build(), ScalingInterval.builder().lower(50).change(+1).build(), ScalingInterval.builder().lower(70).change(+3).build()))
         // Change this to AdjustmentType.PERCENT_CHANGE_IN_CAPACITY to interpret the
         // 'change' numbers before as percentages instead of capacity counts.
  • Enum Constant Details


      @Stability(Stable) public static final AdjustmentType CHANGE_IN_CAPACITY
      Add the adjustment number to the current capacity.

      A positive number increases capacity, a negative number decreases capacity.


      @Stability(Stable) public static final AdjustmentType 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.


      @Stability(Stable) public static final AdjustmentType EXACT_CAPACITY
      Make the capacity equal to the exact number given.
  • Method Details

    • values

      public static AdjustmentType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static AdjustmentType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      name - the name of the enum constant to be returned.
      the enum constant with the specified name
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null