# TargetTrackingScalingConfigurationProperty

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

- Source: Generated at build time
- Type last changed: v2.168.0 · 20 Nov 2024

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `metricType`: string — The metric type to determine auto-scaling.

- `targetValue`: number — The value of `metricType` when to start scaling.
