interface LoadBasedAutoScalingProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.OpsWorks.CfnLayer.LoadBasedAutoScalingProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsopsworks#CfnLayer_LoadBasedAutoScalingProperty |
Java | software.amazon.awscdk.services.opsworks.CfnLayer.LoadBasedAutoScalingProperty |
Python | aws_cdk.aws_opsworks.CfnLayer.LoadBasedAutoScalingProperty |
TypeScript | aws-cdk-lib » aws_opsworks » CfnLayer » 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-lib';
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.