Enum BalancingStrategy
- All Implemented Interfaces:
Serializable
,Comparable<BalancingStrategy>
,java.lang.constant.Constable
@Generated(value="jsii-pacmak/1.102.0 (build e354887)",
date="2024-09-06T01:36:37.874Z")
@Stability(Experimental)
public enum BalancingStrategy
extends Enum<BalancingStrategy>
(experimental) Indicates how GameLift FleetIQ balances the use of Spot Instances and On-Demand Instances in the game server group.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescription(experimental) Only On-Demand Instances are used in the game server group.(experimental) Only Spot Instances are used in the game server group.(experimental) Spot Instances are used whenever available in the game server group. -
Method Summary
Modifier and TypeMethodDescriptionstatic BalancingStrategy
Returns the enum constant of this type with the specified name.static BalancingStrategy[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SPOT_ONLY
(experimental) Only Spot Instances are used in the game server group.If Spot Instances are unavailable or not viable for game hosting, the game server group provides no hosting capacity until Spot Instances can again be used. Until then, no new instances are started, and the existing nonviable Spot Instances are terminated (after current gameplay ends) and are not replaced.
-
SPOT_PREFERRED
(experimental) Spot Instances are used whenever available in the game server group.If Spot Instances are unavailable, the game server group continues to provide hosting capacity by falling back to On-Demand Instances. Existing nonviable Spot Instances are terminated (after current gameplay ends) and are replaced with new On-Demand Instances.
-
ON_DEMAND_ONLY
(experimental) Only On-Demand Instances are used in the game server group.No Spot Instances are used, even when available, while this balancing strategy is in force.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-