# ScalingConfigurationInputProperty

The scaling configuration input of a 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 scalingConfigurationInputProperty: codebuild.CfnFleet.ScalingConfigurationInputProperty = {
  maxCapacity: 123,
  scalingType: 'scalingType',
  targetTrackingScalingConfigs: [{
    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

scaling_configuration_input_property = codebuild.CfnFleet.ScalingConfigurationInputProperty(
    max_capacity=123,
    scaling_type="scalingType",
    target_tracking_scaling_configs=[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.*;

ScalingConfigurationInputProperty scalingConfigurationInputProperty = ScalingConfigurationInputProperty.builder()
        .maxCapacity(123)
        .scalingType("scalingType")
        .targetTrackingScalingConfigs(List.of(TargetTrackingScalingConfigurationProperty.builder()
                .metricType("metricType")
                .targetValue(123)
                .build()))
        .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 scalingConfigurationInputProperty = new ScalingConfigurationInputProperty {
    MaxCapacity = 123,
    ScalingType = "scalingType",
    TargetTrackingScalingConfigs = new [] { 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"

scalingConfigurationInputProperty := &ScalingConfigurationInputProperty{
	MaxCapacity: jsii.Number(123),
	ScalingType: jsii.String("scalingType"),
	TargetTrackingScalingConfigs: []interface{}{
		&TargetTrackingScalingConfigurationProperty{
			MetricType: jsii.String("metricType"),
			TargetValue: jsii.Number(123),
		},
	},
}
```

## Properties

- `maxCapacity`: number — The maximum number of instances in the ﬂeet when auto-scaling.

- `scalingType`: string — The scaling type for a compute fleet.

- `targetTrackingScalingConfigs`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnFleet.TargetTrackingScalingConfigurationProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.CfnFleet.TargetTrackingScalingConfigurationProperty.html)[] — A list of `TargetTrackingScalingConfiguration` objects.
