CustomLaunchTemplateProperty Struct
An Amazon EC2 launch template AWS PCS uses to launch compute nodes.
| 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_pcs as pcs } from 'aws-cdk-lib';
const customLaunchTemplateProperty: pcs.CfnComputeNodeGroup.CustomLaunchTemplateProperty = {
templateId: 'templateId',
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_pcs as pcs
custom_launch_template_property = pcs.CfnComputeNodeGroup.CustomLaunchTemplateProperty(
template_id="templateId",
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.pcs.*;
CustomLaunchTemplateProperty customLaunchTemplateProperty = CustomLaunchTemplateProperty.builder()
.templateId("templateId")
.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.PCS;
var customLaunchTemplateProperty = new CustomLaunchTemplateProperty {
TemplateId = "templateId",
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"
customLaunchTemplateProperty := &CustomLaunchTemplateProperty{
TemplateId: jsii.String("templateId"),
Version: jsii.String("version"),
}
Properties
templateIdoptionalstringtemplate_idoptionalstrtemplateIdoptionalStringTemplateIdoptionalstringTemplateIdoptional*string #The ID of the EC2 launch template to use to provision instances.
versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string #The version of the EC2 launch template to use to provision instances.