interface InstanceDefinition
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.GameLift.Alpha.InstanceDefinition |
![]() | github.com/aws/aws-cdk-go/awscdkgameliftalpha/v2#InstanceDefinition |
![]() | software.amazon.awscdk.services.gamelift.alpha.InstanceDefinition |
![]() | aws_cdk.aws_gamelift_alpha.InstanceDefinition |
![]() | @aws-cdk/aws-gamelift-alpha » InstanceDefinition |
An allowed instance type for a game server group.
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 * as gamelift_alpha from '@aws-cdk/aws-gamelift-alpha';
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
declare const instanceType: ec2.InstanceType;
const instanceDefinition: gamelift_alpha.InstanceDefinition = {
instanceType: instanceType,
// the properties below are optional
weight: 123,
};
Properties
Name | Type | Description |
---|---|---|
instance | Instance | An Amazon EC2 instance type designation. |
weight? | number | Instance weighting that indicates how much this instance type contributes to the total capacity of a game server group. |
instanceType
Type:
Instance
An Amazon EC2 instance type designation.
weight?
Type:
number
(optional, default: default value is 1)
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.