aws-cdk-lib.aws_opsworks.CfnLayer.LoadBasedAutoScalingProperty

interface LoadBasedAutoScalingProperty

LanguageType name
.NETAmazon.CDK.AWS.OpsWorks.CfnLayer.LoadBasedAutoScalingProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsopsworks#CfnLayer_LoadBasedAutoScalingProperty
Javasoftware.amazon.awscdk.services.opsworks.CfnLayer.LoadBasedAutoScalingProperty
Pythonaws_cdk.aws_opsworks.CfnLayer.LoadBasedAutoScalingProperty
TypeScript aws-cdk-lib » 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 { 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

NameTypeDescription
downScaling?IResolvable | AutoScalingThresholdsPropertyAn AutoScalingThresholds object that describes the downscaling configuration, which defines how and when AWS OpsWorks Stacks reduces the number of instances.
enable?boolean | IResolvableWhether load-based auto scaling is enabled for the layer.
upScaling?IResolvable | AutoScalingThresholdsPropertyAn AutoScalingThresholds object that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.

downScaling?

Type: IResolvable | AutoScalingThresholdsProperty (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 | AutoScalingThresholdsProperty (optional)

An AutoScalingThresholds object that describes the upscaling configuration, which defines how and when AWS OpsWorks Stacks increases the number of instances.