class Aws::GameLift::Types::PutScalingPolicyInput


@see docs.aws.amazon.com/goto/WebAPI/gamelift-2015-10-01/PutScalingPolicyInput AWS API Documentation
@return [Types::TargetConfiguration]
An object that contains settings for a target-based scaling policy.
@!attribute [rw] target_configuration
@return [String]
ScalingAdjustment.
Threshold, EvaluationPeriods, ScalingAdjustmentType, and
following parameters: MetricName, ComparisonOperator,
specify a TargetConfiguration. For a rule-based policy set the
the parameter MetricName to ‘PercentAvailableGameSessions’ and
The type of scaling policy to create. For a target-based policy, set
@!attribute [rw] policy_type
@return [String]<br>: docs.aws.amazon.com/gamelift/latest/developerguide/monitoring-cloudwatch.html<br><br><br><br>top-priority destination.
placement requests, in any queue, where the current fleet is the
* WaitTime – Current wait time for pending game session
queue, where the current fleet is the top-priority destination.
* QueueDepth – Pending game session placement requests, in any
active instances that are hosting zero game sessions.
* PercentIdleInstances – Percentage of the total number of
policy.
given current capacity. Use this metric for a target-based scaling
number of game sessions that a fleet could host simultaneously,
* PercentAvailableGameSessions – Unused percentage of the total
zero game sessions.
* IdleInstances – Active instances that are currently hosting
that are being used by a player or are reserved for a player.
* CurrentPlayerSessions – Player slots in active game sessions
included.
currently accepting players. Reserved player slots are not
active game sessions. This includes game sessions that are not
* AvailablePlayerSessions – Empty player slots in currently
could host simultaneously, given current capacity.
* AvailableGameSessions – Additional game sessions that fleet
at least one game session.
* ActiveInstances – Fleet instances that are currently running
running.
* ActiveGameSessions – Game sessions that are currently
being created.
* ActivatingGameSessions – Game sessions in the process of<br><br>CloudWatch].
metrics, see [Monitor Amazon GameLift Servers with Amazon
trigger a scaling adjustment. For detailed descriptions of fleet
Name of the Amazon GameLift Servers-defined metric that is used to
@!attribute [rw] metric_name
@return [Integer]
threshold before a scaling event is triggered.
Length of time (in minutes) the metric must be at or beyond the
@!attribute [rw] evaluation_periods
@return [String]
threshold value.
Comparison operator to use when measuring the metric against the
@!attribute [rw] comparison_operator
@return [Float]
Metric value used to trigger a scaling event.
@!attribute [rw] threshold
@return [String]
example, a value of “-10” scales the fleet down by 10%.
Positive values scale up while negative values scale down; for
instance count by the scaling adjustment, read as a percentage.
* PercentChangeInCapacity – increase or reduce the current
adjustment value.
* ExactCapacity – set the instance count to the scaling
while negative values scale down.
value from the current instance count. Positive values scale up
* ChangeInCapacity – add (or subtract) the scaling adjustment
The type of adjustment to make to a fleet’s instance count:
@!attribute [rw] scaling_adjustment_type
@return [Integer]
Amount of adjustment to make, based on the scaling adjustment type.
@!attribute [rw] scaling_adjustment
@return [String]
the following statuses: ERROR or DELETING.
use either the fleet ID or ARN value. The fleet cannot be in any of
A unique identifier for the fleet to apply this policy to. You can
@!attribute [rw] fleet_id
@return [String]
one scaling policy with the same name.
policy. Policy names do not need to be unique. A fleet can have only
A descriptive label that is associated with a fleet’s scaling
@!attribute [rw] name