@Stability(value=Stable) public static final class CfnLayer.AutoScalingThresholdsProperty.Builder extends Object implements software.amazon.jsii.Builder<CfnLayer.AutoScalingThresholdsProperty>
CfnLayer.AutoScalingThresholdsProperty| Constructor and Description |
|---|
Builder() |
@Stability(value=Stable) public CfnLayer.AutoScalingThresholdsProperty.Builder cpuThreshold(Number cpuThreshold)
CfnLayer.AutoScalingThresholdsProperty.getCpuThreshold()cpuThreshold - The CPU utilization threshold, as a percent of the available CPU.
A value of -1 disables the threshold.this@Stability(value=Stable) public CfnLayer.AutoScalingThresholdsProperty.Builder ignoreMetricsTime(Number ignoreMetricsTime)
CfnLayer.AutoScalingThresholdsProperty.getIgnoreMetricsTime()ignoreMetricsTime - 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.this@Stability(value=Stable) public CfnLayer.AutoScalingThresholdsProperty.Builder instanceCount(Number instanceCount)
CfnLayer.AutoScalingThresholdsProperty.getInstanceCount()instanceCount - The number of instances to add or remove when the load exceeds a threshold.this@Stability(value=Stable) public CfnLayer.AutoScalingThresholdsProperty.Builder loadThreshold(Number loadThreshold)
CfnLayer.AutoScalingThresholdsProperty.getLoadThreshold()loadThreshold - The load threshold.
A value of -1 disables the threshold. For more information about how load is computed, see Load (computing) .this@Stability(value=Stable) public CfnLayer.AutoScalingThresholdsProperty.Builder memoryThreshold(Number memoryThreshold)
CfnLayer.AutoScalingThresholdsProperty.getMemoryThreshold()memoryThreshold - The memory utilization threshold, as a percent of the available memory.
A value of -1 disables the threshold.this@Stability(value=Stable) public CfnLayer.AutoScalingThresholdsProperty.Builder thresholdsWaitTime(Number thresholdsWaitTime)
CfnLayer.AutoScalingThresholdsProperty.getThresholdsWaitTime()thresholdsWaitTime - The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.this@Stability(value=Stable) public CfnLayer.AutoScalingThresholdsProperty build()
build in interface software.amazon.jsii.Builder<CfnLayer.AutoScalingThresholdsProperty>CfnLayer.AutoScalingThresholdsPropertyNullPointerException - if any required attribute was not providedCopyright © 2022. All rights reserved.