java.lang.Object
java.lang.Enum<AdjustmentType>
software.amazon.awscdk.services.applicationautoscaling.AdjustmentType
All Implemented Interfaces:
Serializable, Comparable<AdjustmentType>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-24T21:00:25.332Z") @Stability(Stable) public enum AdjustmentType extends Enum<AdjustmentType>
How adjustment numbers are interpreted.

Example:

 ScalableAttribute capacity;
 Metric cpuUtilization;
 capacity.scaleOnMetric("ScaleToCPU", BasicStepScalingPolicyProps.builder()
         .metric(cpuUtilization)
         .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.PercentChangeInCapacity to interpret the
         // 'change' numbers before as percentages instead of capacity counts.
         .adjustmentType(AdjustmentType.CHANGE_IN_CAPACITY)
         .build());
 
  • Enum Constant Details

    • CHANGE_IN_CAPACITY

      @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.

    • PERCENT_CHANGE_IN_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.

    • EXACT_CAPACITY

      @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.
      Returns:
      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.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null