Interface CfnLayer.AutoScalingThresholdsProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnLayer.AutoScalingThresholdsProperty.Jsii$Proxy
Enclosing class:
CfnLayer

@Stability(Stable) public static interface CfnLayer.AutoScalingThresholdsProperty extends software.amazon.jsii.JsiiSerializable
Describes a load-based auto scaling upscaling or downscaling threshold configuration, which specifies when AWS OpsWorks Stacks starts or stops load-based instances.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.opsworks.*;
 AutoScalingThresholdsProperty autoScalingThresholdsProperty = AutoScalingThresholdsProperty.builder()
         .cpuThreshold(123)
         .ignoreMetricsTime(123)
         .instanceCount(123)
         .loadThreshold(123)
         .memoryThreshold(123)
         .thresholdsWaitTime(123)
         .build();
 
  • Method Details

    • getCpuThreshold

      @Stability(Stable) @Nullable default Number getCpuThreshold()
      The CPU utilization threshold, as a percent of the available CPU.

      A value of -1 disables the threshold.

    • getIgnoreMetricsTime

      @Stability(Stable) @Nullable default Number getIgnoreMetricsTime()
      The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.

      For example, AWS OpsWorks Stacks adds new instances following an upscaling event but the instances won't start reducing the load until they have been booted and configured. There is no point in raising additional scaling events during that operation, which typically takes several minutes. IgnoreMetricsTime allows you to direct AWS OpsWorks Stacks to suppress scaling events long enough to get the new instances online.

    • getInstanceCount

      @Stability(Stable) @Nullable default Number getInstanceCount()
      The number of instances to add or remove when the load exceeds a threshold.
    • getLoadThreshold

      @Stability(Stable) @Nullable default Number getLoadThreshold()
      The load threshold.

      A value of -1 disables the threshold. For more information about how load is computed, see Load (computing) .

    • getMemoryThreshold

      @Stability(Stable) @Nullable default Number getMemoryThreshold()
      The memory utilization threshold, as a percent of the available memory.

      A value of -1 disables the threshold.

    • getThresholdsWaitTime

      @Stability(Stable) @Nullable default Number getThresholdsWaitTime()
      The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
    • builder

      @Stability(Stable) static CfnLayer.AutoScalingThresholdsProperty.Builder builder()
      Returns:
      a CfnLayer.AutoScalingThresholdsProperty.Builder of CfnLayer.AutoScalingThresholdsProperty