InstanceDefinition class
This data type is used with the Amazon GameLift FleetIQ and game server groups.
An allowed instance type for a GameServerGroup. All game server groups must have at least two instance types defined for it. GameLift FleetIQ periodically evaluates each defined instance type for viability. It then updates the Auto Scaling group with the list of viable instance types.
Constructors
- InstanceDefinition.new({required GameServerGroupInstanceType instanceType, String? weightedCapacity})
-
InstanceDefinition.fromJson(Map<
String, dynamic> json) -
factory
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- instanceType → GameServerGroupInstanceType
-
An EC2 instance type designation.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- weightedCapacity → String?
-
Instance weighting that indicates how much this instance type contributes to
the total capacity of a game server group. Instance weights are used by
GameLift FleetIQ to calculate the instance type's cost per unit hour and
better identify the most cost-effective options. For detailed information on
weighting instance capacity, see Instance
Weighting in the Amazon EC2 Auto Scaling User Guide. Default
value is "1".
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited