Skip to content
v2.277.0

TargetTrackingScalingConfigurationProperty Struct ​

Defines when a new instance is auto-scaled into the compute fleet.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const targetTrackingScalingConfigurationProperty: codebuild.CfnFleet.TargetTrackingScalingConfigurationProperty = {
  metricType: 'metricType',
  targetValue: 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_codebuild as codebuild

target_tracking_scaling_configuration_property = codebuild.CfnFleet.TargetTrackingScalingConfigurationProperty(
    metric_type="metricType",
    target_value=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.codebuild.*;

TargetTrackingScalingConfigurationProperty targetTrackingScalingConfigurationProperty = TargetTrackingScalingConfigurationProperty.builder()
        .metricType("metricType")
        .targetValue(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.CodeBuild;

var targetTrackingScalingConfigurationProperty = new TargetTrackingScalingConfigurationProperty {
    MetricType = "metricType",
    TargetValue = 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"

targetTrackingScalingConfigurationProperty := &TargetTrackingScalingConfigurationProperty{
	MetricType: jsii.String("metricType"),
	TargetValue: jsii.Number(123),
}

Properties ​

metricTypeoptionalstringmetric_typeoptionalstrmetricTypeoptionalStringMetricTypeoptionalstringMetricTypeoptional*string #
The metric type to determine auto-scaling.
targetValueoptionalnumbertarget_valueoptionalint | floattargetValueoptionalNumberTargetValueoptionaldoubleTargetValueoptional*float64 #
The value of `metricType` when to start scaling.