@Stability(value=Stable)
public static interface CfnLaunchTemplate.TagSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
TagSpecification is a property type of TagSpecifications . TagSpecifications is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
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.*;
TagSpecificationProperty tagSpecificationProperty = TagSpecificationProperty.builder()
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnLaunchTemplate.TagSpecificationProperty.Builder
A builder for
CfnLaunchTemplate.TagSpecificationProperty |
static class |
CfnLaunchTemplate.TagSpecificationProperty.Jsii$Proxy
An implementation for
CfnLaunchTemplate.TagSpecificationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnLaunchTemplate.TagSpecificationProperty.Builder |
builder() |
default String |
getResourceType()
The type of resource to tag.
|
default List<CfnTag> |
getTags()
The tags to apply to the resource.
|
@Stability(value=Stable) @Nullable default String getResourceType()
Currently, the resource types that support tagging on creation are instance and volume . To tag a resource after it has been created, see CreateTags .
Conditional : Required if tags are set.
@Stability(value=Stable) @Nullable default List<CfnTag> getTags()
@Stability(value=Stable) static CfnLaunchTemplate.TagSpecificationProperty.Builder builder()
Copyright © 2022. All rights reserved.