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