Interface CfnLaunchTemplateProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLaunchTemplateProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-10-14T12:28:09.302Z")
@Stability(Stable)
public interface CfnLaunchTemplateProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnLaunchTemplate.
Example:
Cluster cluster;
String userData = "MIME-Version: 1.0\nContent-Type: multipart/mixed; boundary=\"==MYBOUNDARY==\"\n\n--==MYBOUNDARY==\nContent-Type: text/x-shellscript; charset=\"us-ascii\"\n\n#!/bin/bash\necho \"Running custom user data script\"\n\n--==MYBOUNDARY==--\\\n";
CfnLaunchTemplate lt = CfnLaunchTemplate.Builder.create(this, "LaunchTemplate")
.launchTemplateData(LaunchTemplateDataProperty.builder()
.instanceType("t3.small")
.userData(Fn.base64(userData))
.build())
.build();
cluster.addNodegroupCapacity("extra-ng", NodegroupOptions.builder()
.launchTemplateSpec(LaunchTemplateSpec.builder()
.id(lt.getRef())
.version(lt.getAttrLatestVersionNumber())
.build())
.build());
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLaunchTemplatePropsstatic final classAn implementation forCfnLaunchTemplateProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLaunchTemplateData
The information for the launch template.- See Also:
-
getLaunchTemplateName
A name for the launch template.- See Also:
-
getTagSpecifications
The tags to apply to the launch template on creation.To tag the launch template, the resource type must be
launch-template.To specify the tags for resources that are created during instance launch, use TagSpecifications .
- See Also:
-
getVersionDescription
A description for the first version of the launch template.- See Also:
-
builder
- Returns:
- a
CfnLaunchTemplateProps.BuilderofCfnLaunchTemplateProps
-