@Stability(value=Stable)
public static interface CfnInstance.LaunchTemplateSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
LaunchTemplateSpecification is a property of the AWS::EC2::Instance resource.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.ec2.*;
LaunchTemplateSpecificationProperty launchTemplateSpecificationProperty = LaunchTemplateSpecificationProperty.builder()
.version("version")
// the properties below are optional
.launchTemplateId("launchTemplateId")
.launchTemplateName("launchTemplateName")
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnInstance.LaunchTemplateSpecificationProperty.Builder
A builder for
CfnInstance.LaunchTemplateSpecificationProperty |
static class |
CfnInstance.LaunchTemplateSpecificationProperty.Jsii$Proxy
An implementation for
CfnInstance.LaunchTemplateSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnInstance.LaunchTemplateSpecificationProperty.Builder |
builder() |
default String |
getLaunchTemplateId()
The ID of the launch template.
|
default String |
getLaunchTemplateName()
The name of the launch template.
|
String |
getVersion()
The version number of the launch template.
|
@Stability(value=Stable) @NotNull String getVersion()
AWS CloudFormation does not support specifying $Latest , or $Default for the template version number.
@Stability(value=Stable) @Nullable default String getLaunchTemplateId()
@Stability(value=Stable) @Nullable default String getLaunchTemplateName()
@Stability(value=Stable) static CfnInstance.LaunchTemplateSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.