class CfnGameServerGroupPropsMixin
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.GameLift.Mixins.CfnGameServerGroupPropsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsgamelift/mixins#CfnGameServerGroupPropsMixin |
Java | software.amazon.awscdk.mixins.preview.services.gamelift.mixins.CfnGameServerGroupPropsMixin |
Python | aws_cdk.mixins_preview.aws_gamelift.mixins.CfnGameServerGroupPropsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_gamelift » mixins » CfnGameServerGroupPropsMixin |
Implements
IMixin
Extends
Mixin
This operation is used with the Amazon GameLift FleetIQ solution and game server groups..
Creates a GameLift FleetIQ game server group for managing game hosting on a collection of Amazon EC2 instances for game hosting. This operation creates the game server group, creates an Auto Scaling group in your AWS account , and establishes a link between the two groups. You can view the status of your game server groups in the GameLift console. Game server group metrics and events are emitted to Amazon CloudWatch.
Before creating a new game server group, you must have the following:
- An Amazon EC2 launch template that specifies how to launch Amazon EC2 instances with your game server build. For more information, see Launching an Instance from a Launch Template in the Amazon EC2 User Guide .
- An IAM role that extends limited access to your AWS account to allow GameLift FleetIQ to create and interact with the Auto Scaling group. For more information, see Create IAM roles for cross-service interaction in the GameLift FleetIQ Developer Guide .
To create a new game server group, specify a unique group name, IAM role and Amazon EC2 launch template, and provide a list of instance types that can be used in the group. You must also set initial maximum and minimum limits on the group's instance count. You can optionally set an Auto Scaling policy with target tracking based on a GameLift FleetIQ metric.
Once the game server group and corresponding Auto Scaling group are created, you have full access to change the Auto Scaling group's configuration as needed. Several properties that are set when creating a game server group, including maximum/minimum size and auto-scaling policy settings, must be updated directly in the Auto Scaling group. Keep in mind that some Auto Scaling group properties are periodically updated by GameLift FleetIQ as part of its balancing activities to optimize for availability and cost.
Learn more
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins } from '@aws-cdk/mixins-preview';
import { mixins as gamelift_mixins } from '@aws-cdk/mixins-preview/aws-gamelift';
const cfnGameServerGroupPropsMixin = new gamelift_mixins.CfnGameServerGroupPropsMixin({
autoScalingPolicy: {
estimatedInstanceWarmup: 123,
targetTrackingConfiguration: {
targetValue: 123,
},
},
balancingStrategy: 'balancingStrategy',
deleteOption: 'deleteOption',
gameServerGroupName: 'gameServerGroupName',
gameServerProtectionPolicy: 'gameServerProtectionPolicy',
instanceDefinitions: [{
instanceType: 'instanceType',
weightedCapacity: 'weightedCapacity',
}],
launchTemplate: {
launchTemplateId: 'launchTemplateId',
launchTemplateName: 'launchTemplateName',
version: 'version',
},
maxSize: 123,
minSize: 123,
roleArn: 'roleArn',
tags: [{
key: 'key',
value: 'value',
}],
vpcSubnets: ['vpcSubnets'],
}, /* all optional props */ {
strategy: mixins.PropertyMergeStrategy.OVERRIDE,
});
Initializer
new CfnGameServerGroupPropsMixin(props: CfnGameServerGroupMixinProps, options?: CfnPropertyMixinOptions)
Parameters
- props
Cfn— L1 properties to apply.Game Server Group Mixin Props - options
Cfn— Mixin options.Property Mixin Options
Create a mixin to apply properties to AWS::GameLift::GameServerGroup.
Properties
| Name | Type | Description |
|---|---|---|
| props | Cfn | |
| strategy | Property | |
| static CFN_PROPERTY_KEYS | string[] |
props
Type:
Cfn
strategy
Type:
Property
static CFN_PROPERTY_KEYS
Type:
string[]
Methods
| Name | Description |
|---|---|
| apply | Apply the mixin properties to the construct. |
| supports(construct) | Check if this mixin supports the given construct. |
applyTo(construct)
public applyTo(construct: IConstruct): IConstruct
Parameters
- construct
IConstruct
Returns
Apply the mixin properties to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct.

.NET
Go
Java
Python
TypeScript