Interface CfnLaunchTemplateProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLaunchTemplateProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-09-11T18:01:14.588Z")
@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 class
A builder forCfnLaunchTemplateProps
static final class
An 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 the resources that are created when an instance is launched, you must use TagSpecifications .
- See Also:
-
getVersionDescription
A description for the first version of the launch template.- See Also:
-
builder
- Returns:
- a
CfnLaunchTemplateProps.Builder
ofCfnLaunchTemplateProps
-