interface LoadBasedAutoScalingProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.OpsWorks.CfnLayer.LoadBasedAutoScalingProperty |
Java | software.amazon.awscdk.services.opsworks.CfnLayer.LoadBasedAutoScalingProperty |
Python | aws_cdk.aws_opsworks.CfnLayer.LoadBasedAutoScalingProperty |
TypeScript | @aws-cdk/aws-opsworks » CfnLayer » LoadBasedAutoScalingProperty |
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 * as opsworks from '@aws-cdk/aws-opsworks';
const loadBasedAutoScalingProperty: opsworks.CfnLayer.LoadBasedAutoScalingProperty = {
downScaling: {
cpuThreshold: 123,
ignoreMetricsTime: 123,
instanceCount: 123,
loadThreshold: 123,
memoryThreshold: 123,
thresholdsWaitTime: 123,
},
enable: false,
upScaling: {
cpuThreshold: 123,
ignoreMetricsTime: 123,
instanceCount: 123,
loadThreshold: 123,
memoryThreshold: 123,
thresholdsWaitTime: 123,
},
};
Properties
| Name | Type | Description |
|---|---|---|
| down | IResolvable | Auto | An AutoScalingThresholds object that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances. |
| enable? | boolean | IResolvable | Whether load-based auto scaling is enabled for the layer. |
| up | IResolvable | Auto | An AutoScalingThresholds object that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances. |
downScaling?
Type:
IResolvable | Auto
(optional)
An AutoScalingThresholds object that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances.
enable?
Type:
boolean | IResolvable
(optional)
Whether load-based auto scaling is enabled for the layer.
upScaling?
Type:
IResolvable | Auto
(optional)
An AutoScalingThresholds object that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.

.NET
Java
Python
TypeScript