interface TargetConfigurationProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.GameLift.CfnContainerFleet.TargetConfigurationProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsgamelift#CfnContainerFleet_TargetConfigurationProperty |
![]() | software.amazon.awscdk.services.gamelift.CfnContainerFleet.TargetConfigurationProperty |
![]() | aws_cdk.aws_gamelift.CfnContainerFleet.TargetConfigurationProperty |
![]() | aws-cdk-lib » aws_gamelift » CfnContainerFleet » TargetConfigurationProperty |
Settings for a target-based scaling policy.
A target-based policy tracks a particular fleet metric specifies a target value for the metric. As player usage changes, the policy triggers Amazon GameLift to adjust capacity so that the metric returns to the target value. The target configuration specifies settings as needed for the target based policy, including the target value.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from 'aws-cdk-lib';
const targetConfigurationProperty: gamelift.CfnContainerFleet.TargetConfigurationProperty = {
targetValue: 123,
};
Properties
Name | Type | Description |
---|---|---|
target | number | Desired value to use with a target-based scaling policy. |
targetValue
Type:
number
Desired value to use with a target-based scaling policy.
The value must be relevant for whatever metric the scaling policy is using. For example, in a policy using the metric PercentAvailableGameSessions, the target value should be the preferred size of the fleet's buffer (the percent of capacity that should be idle and ready for new game sessions).