import { _TargetConfiguration, _UnmarshalledTargetConfiguration } from "./_TargetConfiguration"; /** *

Rule that controls how a fleet is scaled. Scaling policies are uniquely identified by the combination of name and fleet ID.

*/ export interface _ScalingPolicy { /** *

Unique identifier for a fleet that is associated with this scaling policy.

*/ FleetId?: string; /** *

Descriptive label that is associated with a scaling policy. Policy names do not need to be unique.

*/ Name?: string; /** *

Current status of the scaling policy. The scaling policy can be in force only when in an ACTIVE status. Scaling policies can be suspended for individual fleets (see StopFleetActions; if suspended for a fleet, the policy status does not change. View a fleet's stopped actions by calling DescribeFleetCapacity.

*/ Status?: "ACTIVE" | "UPDATE_REQUESTED" | "UPDATING" | "DELETE_REQUESTED" | "DELETING" | "DELETED" | "ERROR" | string; /** *

Amount of adjustment to make, based on the scaling adjustment type.

*/ ScalingAdjustment?: number; /** *

Type of adjustment to make to a fleet's instance count (see FleetCapacity):

*/ ScalingAdjustmentType?: "ChangeInCapacity" | "ExactCapacity" | "PercentChangeInCapacity" | string; /** *

Comparison operator to use when measuring a metric against the threshold value.

*/ ComparisonOperator?: "GreaterThanOrEqualToThreshold" | "GreaterThanThreshold" | "LessThanThreshold" | "LessThanOrEqualToThreshold" | string; /** *

Metric value used to trigger a scaling event.

*/ Threshold?: number; /** *

Length of time (in minutes) the metric must be at or beyond the threshold before a scaling event is triggered.

*/ EvaluationPeriods?: number; /** *

Name of the Amazon GameLift-defined metric that is used to trigger a scaling adjustment. For detailed descriptions of fleet metrics, see Monitor Amazon GameLift with Amazon CloudWatch.

*/ MetricName?: "ActivatingGameSessions" | "ActiveGameSessions" | "ActiveInstances" | "AvailableGameSessions" | "AvailablePlayerSessions" | "CurrentPlayerSessions" | "IdleInstances" | "PercentAvailableGameSessions" | "PercentIdleInstances" | "QueueDepth" | "WaitTime" | string; /** *

Type of scaling policy to create. For a target-based policy, set the parameter MetricName to 'PercentAvailableGameSessions' and specify a TargetConfiguration. For a rule-based policy set the following parameters: MetricName, ComparisonOperator, Threshold, EvaluationPeriods, ScalingAdjustmentType, and ScalingAdjustment.

*/ PolicyType?: "RuleBased" | "TargetBased" | string; /** *

Object that contains settings for a target-based scaling policy.

*/ TargetConfiguration?: _TargetConfiguration; } export interface _UnmarshalledScalingPolicy extends _ScalingPolicy { /** *

Object that contains settings for a target-based scaling policy.

*/ TargetConfiguration?: _UnmarshalledTargetConfiguration; }