@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:38.249Z") @Stability(value=Stable) public interface CfnLaunchTemplateProps extends software.amazon.jsii.JsiiSerializable
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());
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunchTemplateProps.Builder
A builder for
CfnLaunchTemplateProps |
static class |
CfnLaunchTemplateProps.Jsii$Proxy
An implementation for
CfnLaunchTemplateProps |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunchTemplateProps.Builder |
builder() |
Object |
getLaunchTemplateData()
The information for the launch template.
|
default String |
getLaunchTemplateName()
A name for the launch template.
|
default Object |
getTagSpecifications()
The tags to apply to the launch template during creation.
|
default String |
getVersionDescription()
`AWS::EC2::LaunchTemplate.VersionDescription`.
|
@Stability(value=Stable) @NotNull Object getLaunchTemplateData()
@Stability(value=Stable) @Nullable default String getLaunchTemplateName()
@Stability(value=Stable) @Nullable default Object getTagSpecifications()
@Stability(value=Stable) @Nullable default String getVersionDescription()
@Stability(value=Stable) static CfnLaunchTemplateProps.Builder builder()
CfnLaunchTemplateProps.Builder of CfnLaunchTemplatePropsCopyright © 2022. All rights reserved.