Interface CfnContainerFleet.ITargetConfigurationProperty
Settings for a target-based scaling policy.
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface ITargetConfigurationProperty
Syntax (vb)
Public Interface ITargetConfigurationProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift;
var targetConfigurationProperty = new TargetConfigurationProperty {
TargetValue = 123
};
Synopsis
Properties
Target |
Desired value to use with a target-based scaling policy. |
Properties
TargetValue
Desired value to use with a target-based scaling policy.
double TargetValue { get; }
Property Value
System.
Remarks
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).