interface LoadBasedAutoScalingProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.OpsWorks.Mixins.CfnLayerPropsMixin.LoadBasedAutoScalingProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsopsworks/mixins#CfnLayerPropsMixin_LoadBasedAutoScalingProperty |
Java | software.amazon.awscdk.mixins.preview.services.opsworks.mixins.CfnLayerPropsMixin.LoadBasedAutoScalingProperty |
Python | aws_cdk.mixins_preview.aws_opsworks.mixins.CfnLayerPropsMixin.LoadBasedAutoScalingProperty |
TypeScript | @aws-cdk/mixins-preview » aws_opsworks » mixins » CfnLayerPropsMixin » LoadBasedAutoScalingProperty |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as opsworks_mixins } from '@aws-cdk/mixins-preview/aws-opsworks';
const loadBasedAutoScalingProperty: opsworks_mixins.CfnLayerPropsMixin.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 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 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 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 OpsWorks Stacks increases the number of instances.

.NET
Go
Java
Python
TypeScript