ScalingConfigurationInputProperty Struct
The scaling configuration input of a compute fleet.
| Source | |
|---|---|
| Type last changed |
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 scalingConfigurationInputProperty: codebuild.CfnFleet.ScalingConfigurationInputProperty = {
maxCapacity: 123,
scalingType: 'scalingType',
targetTrackingScalingConfigs: [{
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
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
// 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();
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
} }
};
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
maxCapacityoptionalnumbermax_capacityoptionalint | floatmaxCapacityoptionalNumberMaxCapacityoptionaldoubleMaxCapacityoptional*float64 #The maximum number of instances in the fleet when auto-scaling.
scalingTypeoptionalstringscaling_typeoptionalstrscalingTypeoptionalStringScalingTypeoptionalstringScalingTypeoptional*string #The scaling type for a compute fleet.
targetTrackingScalingConfigsoptionalIResolvable | IResolvable | CfnFleet.target_tracking_scaling_configsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, TargetTrackingScalingConfigurationProperty]]]targetTrackingScalingConfigsoptionalIResolvableTargetTrackingScalingConfigsoptionalIResolvableTargetTrackingScalingConfigsoptionalinterface{} #A list of `TargetTrackingScalingConfiguration` objects.