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
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLayer.LoadBasedAutoScalingPropertystatic final classAn implementation forCfnLayer.LoadBasedAutoScalingProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectAnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.default ObjectWhether load-based auto scaling is enabled for the layer.default ObjectAnAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getDownScaling
AnAutoScalingThresholdsobject that describes the downscaling configuration, which defines how and when OpsWorks Stacks reduces the number of instances.Returns union: either
IResolvableorCfnLayer.AutoScalingThresholdsProperty- See Also:
-
getEnable
Whether load-based auto scaling is enabled for the layer.Returns union: either
BooleanorIResolvable- See Also:
-
getUpScaling
AnAutoScalingThresholdsobject that describes the upscaling configuration, which defines how and when OpsWorks Stacks increases the number of instances.Returns union: either
IResolvableorCfnLayer.AutoScalingThresholdsProperty- See Also:
-
builder
-