@Stability(value=Stable)
public static interface CfnLayer.AutoScalingThresholdsProperty
extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLayer.AutoScalingThresholdsProperty.Builder
A builder for
CfnLayer.AutoScalingThresholdsProperty |
static class |
CfnLayer.AutoScalingThresholdsProperty.Jsii$Proxy
An implementation for
CfnLayer.AutoScalingThresholdsProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLayer.AutoScalingThresholdsProperty.Builder |
builder() |
default Number |
getCpuThreshold()
The CPU utilization threshold, as a percent of the available CPU.
|
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.
|
default Number |
getInstanceCount()
The number of instances to add or remove when the load exceeds a threshold.
|
default Number |
getLoadThreshold()
The load threshold.
|
default Number |
getMemoryThreshold()
The memory utilization threshold, as a percent of the available memory.
|
default Number |
getThresholdsWaitTime()
The amount of time, in minutes, that the load must exceed a threshold before more instances are added or removed.
|
@Stability(value=Stable) @Nullable default Number getCpuThreshold()
A value of -1 disables the threshold.
@Stability(value=Stable) @Nullable default Number getIgnoreMetricsTime()
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.
@Stability(value=Stable) @Nullable default Number getInstanceCount()
@Stability(value=Stable) @Nullable default Number getLoadThreshold()
A value of -1 disables the threshold. For more information about how load is computed, see Load (computing) .
@Stability(value=Stable) @Nullable default Number getMemoryThreshold()
A value of -1 disables the threshold.
@Stability(value=Stable) @Nullable default Number getThresholdsWaitTime()
@Stability(value=Stable) static CfnLayer.AutoScalingThresholdsProperty.Builder builder()
Copyright © 2022. All rights reserved.