Skip to content
v2.278.0

ScalingConfigurationProperty Struct ​

Specifies the boundaries of the compute node group auto scaling.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const scalingConfigurationProperty: pcs.CfnComputeNodeGroup.ScalingConfigurationProperty = {
  maxInstanceCount: 123,
  minInstanceCount: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_pcs as pcs

scaling_configuration_property = pcs.CfnComputeNodeGroup.ScalingConfigurationProperty(
    max_instance_count=123,
    min_instance_count=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.pcs.*;

ScalingConfigurationProperty scalingConfigurationProperty = ScalingConfigurationProperty.builder()
        .maxInstanceCount(123)
        .minInstanceCount(123)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.PCS;

var scalingConfigurationProperty = new ScalingConfigurationProperty {
    MaxInstanceCount = 123,
    MinInstanceCount = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

scalingConfigurationProperty := &ScalingConfigurationProperty{
	MaxInstanceCount: jsii.Number(123),
	MinInstanceCount: jsii.Number(123),
}

Properties ​

maxInstanceCountnumbermax_instance_countint | floatmaxInstanceCountNumberMaxInstanceCountdoubleMaxInstanceCount*float64 required #
The upper bound of the number of instances allowed in the compute fleet.
minInstanceCountnumbermin_instance_countint | floatminInstanceCountNumberMinInstanceCountdoubleMinInstanceCount*float64 required #
The lower bound of the number of instances allowed in the compute fleet.