Class CfnGameServerGroup.InstanceDefinitionProperty
This data type is used with the Amazon GameLift FleetIQ and game server groups..
Inheritance
Namespace: Amazon.CDK.AWS.GameLift
Assembly: Amazon.CDK.AWS.GameLift.dll
Syntax (csharp)
public class InstanceDefinitionProperty : Object, CfnGameServerGroup.IInstanceDefinitionProperty
Syntax (vb)
Public Class InstanceDefinitionProperty
Inherits Object
Implements CfnGameServerGroup.IInstanceDefinitionProperty
Remarks
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.
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;
var instanceDefinitionProperty = new InstanceDefinitionProperty {
InstanceType = "instanceType",
// the properties below are optional
WeightedCapacity = "weightedCapacity"
};
Synopsis
Constructors
Instance |
Properties
Instance |
An Amazon EC2 instance type designation. |
Weighted |
Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. |
Constructors
InstanceDefinitionProperty()
public InstanceDefinitionProperty()
Properties
InstanceType
An Amazon EC2 instance type designation.
public string InstanceType { get; set; }
Property Value
System.
Remarks
WeightedCapacity
Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group.
public string WeightedCapacity { get; set; }
Property Value
System.
Remarks
Instance weights are used by Amazon 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 Elastic Compute Cloud Auto Scaling User Guide . Default value is "1".