Interface CfnLayer.LoadBasedAutoScalingProperty

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

@Stability(Stable) public static interface CfnLayer.LoadBasedAutoScalingProperty extends software.amazon.jsii.JsiiSerializable
Describes a layer's load-based auto scaling configuration.

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.*;
 LoadBasedAutoScalingProperty loadBasedAutoScalingProperty = LoadBasedAutoScalingProperty.builder()
         .downScaling(AutoScalingThresholdsProperty.builder()
                 .cpuThreshold(123)
                 .ignoreMetricsTime(123)
                 .instanceCount(123)
                 .loadThreshold(123)
                 .memoryThreshold(123)
                 .thresholdsWaitTime(123)
                 .build())
         .enable(false)
         .upScaling(AutoScalingThresholdsProperty.builder()
                 .cpuThreshold(123)
                 .ignoreMetricsTime(123)
                 .instanceCount(123)
                 .loadThreshold(123)
                 .memoryThreshold(123)
                 .thresholdsWaitTime(123)
                 .build())
         .build();
 
  • Method Details

    • getDownScaling

      @Stability(Stable) @Nullable default Object getDownScaling()
      An AutoScalingThresholds object that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances.
    • getEnable

      @Stability(Stable) @Nullable default Object getEnable()
      Whether load-based auto scaling is enabled for the layer.
    • getUpScaling

      @Stability(Stable) @Nullable default Object getUpScaling()
      An AutoScalingThresholds object that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.
    • builder

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