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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLayer.AutoScalingThresholdsProperty
static final class
An implementation forCfnLayer.AutoScalingThresholdsProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default Number
The CPU utilization threshold, as a percent of the available CPU.default Number
The amount of time (in minutes) after a scaling event occurs that AWS OpsWorks Stacks should ignore metrics and suppress additional scaling events.default Number
The number of instances to add or remove when the load exceeds a threshold.default Number
The load threshold.default Number
The memory utilization threshold, as a percent of the available memory.default Number
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getCpuThreshold
The CPU utilization threshold, as a percent of the available CPU.A value of -1 disables the threshold.
-
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
The number of instances to add or remove when the load exceeds a threshold. -
getLoadThreshold
The load threshold.A value of -1 disables the threshold. For more information about how load is computed, see Load (computing) .
-
getMemoryThreshold
The memory utilization threshold, as a percent of the available memory.A value of -1 disables the threshold.
-
getThresholdsWaitTime
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed. -
builder
-