Class InstanceDefinition
(experimental) An allowed instance type for a game server group.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.GameLift.Alpha
Assembly: Amazon.CDK.AWS.GameLift.Alpha.dll
Syntax (csharp)
public class InstanceDefinition : Object, IInstanceDefinition
Syntax (vb)
Public Class InstanceDefinition
Inherits Object
Implements IInstanceDefinition
Remarks
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.
Stability: Experimental
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.GameLift.Alpha;
using Amazon.CDK.AWS.EC2;
InstanceType instanceType;
var instanceDefinition = new InstanceDefinition {
InstanceType = instanceType,
// the properties below are optional
Weight = 123
};
Synopsis
Constructors
InstanceDefinition() |
Properties
InstanceType | (experimental) An Amazon EC2 instance type designation. |
Weight | (experimental) Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. |
Constructors
InstanceDefinition()
public InstanceDefinition()
Properties
InstanceType
(experimental) An Amazon EC2 instance type designation.
public InstanceType InstanceType { get; set; }
Property Value
Remarks
Stability: Experimental
Weight
(experimental) Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group.
public Nullable<double> Weight { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
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.
Default: default value is 1
Stability: Experimental
See: https://docs.aws.amazon.com/autoscaling/ec2/userguide/asg-instance-weighting.html