Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Documentation
data TargetConfiguration Source #
Settings for a target-based scaling policy (see ScalingPolicy. 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.
Related actions
DescribeFleetCapacity | UpdateFleetCapacity | DescribeEC2InstanceLimits | PutScalingPolicy | DescribeScalingPolicies | DeleteScalingPolicy | StopFleetActions | StartFleetActions | All APIs by task
See: newTargetConfiguration
smart constructor.
TargetConfiguration' | |
|
Instances
newTargetConfiguration Source #
Create a value of TargetConfiguration
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:targetValue:TargetConfiguration'
, targetConfiguration_targetValue
- 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).
targetConfiguration_targetValue :: Lens' TargetConfiguration Double Source #
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).