LaunchTemplateProperty Struct
This data type is used with the GameLift FleetIQ and game server groups..
An Amazon EC2 launch template that contains configuration settings and game server code to be deployed to all instances in a game server group. The launch template is specified when creating a new game server group with GameServerGroup .
| Source | |
|---|---|
| Type last changed |
Example
ts
// 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 launchTemplateProperty: gamelift.CfnGameServerGroup.LaunchTemplateProperty = {
launchTemplateId: 'launchTemplateId',
launchTemplateName: 'launchTemplateName',
version: 'version',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_gamelift as gamelift
launch_template_property = gamelift.CfnGameServerGroup.LaunchTemplateProperty(
launch_template_id="launchTemplateId",
launch_template_name="launchTemplateName",
version="version"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.gamelift.*;
LaunchTemplateProperty launchTemplateProperty = LaunchTemplateProperty.builder()
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.version("version")
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 launchTemplateProperty = new LaunchTemplateProperty {
LaunchTemplateId = "launchTemplateId",
LaunchTemplateName = "launchTemplateName",
Version = "version"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
launchTemplateProperty := &LaunchTemplateProperty{
LaunchTemplateId: jsii.String("launchTemplateId"),
LaunchTemplateName: jsii.String("launchTemplateName"),
Version: jsii.String("version"),
}
Properties
launchTemplateIdoptionalstringlaunch_template_idoptionalstrlaunchTemplateIdoptionalStringLaunchTemplateIdoptionalstringLaunchTemplateIdoptional*string #A unique identifier for an existing Amazon EC2 launch template.
launchTemplateNameoptionalstringlaunch_template_nameoptionalstrlaunchTemplateNameoptionalStringLaunchTemplateNameoptionalstringLaunchTemplateNameoptional*string #A readable identifier for an existing Amazon EC2 launch template.
versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string #The version of the Amazon EC2 launch template to use.
If no version is specified, the default version will be used. With Amazon EC2, you can specify a default version for a launch template. If none is set, the default is the first version created.