Skip to content
v2.278.0

LaunchTemplateSpec Struct ​

Launch template property specification.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_eks_v2 as eks_v2 } from 'aws-cdk-lib';
const launchTemplateSpec: eks_v2.LaunchTemplateSpec = {
  id: 'id',

  // the properties below are optional
  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_eks_v2 as eks_v2

launch_template_spec = eks_v2.LaunchTemplateSpec(
    id="id",

    # the properties below are optional
    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.eks_v2.*;

LaunchTemplateSpec launchTemplateSpec = LaunchTemplateSpec.builder()
        .id("id")

        // the properties below are optional
        .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.EKSv2;

var launchTemplateSpec = new LaunchTemplateSpec {
    Id = "id",

    // the properties below are optional
    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"

launchTemplateSpec := &LaunchTemplateSpec{
	Id: jsii.String("id"),

	// the properties below are optional
	Version: jsii.String("version"),
}

Properties ​

idstringidstridStringIdstringId*string required #
The Launch template ID.
versionoptionalstringversionoptionalstrversionoptionalStringVersionoptionalstringVersionoptional*string #
The launch template version to be used (optional).

Default: the default version of the launch template