# CustomLaunchTemplateProperty

An Amazon EC2 launch template AWS PCS uses to launch compute nodes.

- Source: Generated at build time
- Type last changed: v2.276.0 · 10 Nov 2026

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_pcs as pcs } from 'aws-cdk-lib';
const customLaunchTemplateProperty: pcs.CfnComputeNodeGroup.CustomLaunchTemplateProperty = {
  templateId: 'templateId',
  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_pcs as pcs

custom_launch_template_property = pcs.CfnComputeNodeGroup.CustomLaunchTemplateProperty(
    template_id="templateId",
    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.pcs.*;

CustomLaunchTemplateProperty customLaunchTemplateProperty = CustomLaunchTemplateProperty.builder()
        .templateId("templateId")
        .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.PCS;

var customLaunchTemplateProperty = new CustomLaunchTemplateProperty {
    TemplateId = "templateId",
    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"

customLaunchTemplateProperty := &CustomLaunchTemplateProperty{
	TemplateId: jsii.String("templateId"),
	Version: jsii.String("version"),
}
```

## Properties

- `templateId`: string — The ID of the EC2 launch template to use to provision instances.

- `version`: string — The version of the EC2 launch template to use to provision instances.
