# LaunchTemplateProperty

*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: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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"
};
```

Golang:

```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

- `launchTemplateId`: string — A unique identifier for an existing Amazon EC2 launch template.

- `launchTemplateName`: string — A readable identifier for an existing Amazon EC2 launch template.

- `version`: 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.
