aws-cdk-lib.aws_gamelift.CfnGameServerGroup.InstanceDefinitionProperty

interface InstanceDefinitionProperty

LanguageType name
.NETAmazon.CDK.AWS.GameLift.CfnGameServerGroup.InstanceDefinitionProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsgamelift#CfnGameServerGroup_InstanceDefinitionProperty
Javasoftware.amazon.awscdk.services.gamelift.CfnGameServerGroup.InstanceDefinitionProperty
Pythonaws_cdk.aws_gamelift.CfnGameServerGroup.InstanceDefinitionProperty
TypeScript aws-cdk-lib » aws_gamelift » CfnGameServerGroup » InstanceDefinitionProperty

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.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_gamelift as gamelift } from 'aws-cdk-lib';
const instanceDefinitionProperty: gamelift.CfnGameServerGroup.InstanceDefinitionProperty = {
  instanceType: 'instanceType',

  // the properties below are optional
  weightedCapacity: 'weightedCapacity',
};

Properties

NameTypeDescription
instanceTypestringAn Amazon EC2 instance type designation.
weightedCapacity?stringInstance weighting that indicates how much this instance type contributes to the total capacity of a game server group.

instanceType

Type: string

An Amazon EC2 instance type designation.


weightedCapacity?

Type: string (optional)

Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group.

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".