Interface CfnLaunchTemplate.TagSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLaunchTemplate.TagSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnLaunchTemplate
@Stability(Stable)
public static interface CfnLaunchTemplate.TagSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the tags to apply to a resource when the resource is created for the launch template.
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();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnLaunchTemplate.TagSpecificationProperty
static final class
An implementation forCfnLaunchTemplate.TagSpecificationProperty
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceType
The type of resource to tag.The
Valid Values
are all the resource types that can be tagged. However, when creating a launch template, you can specify tags for the following resource types only:instance
|volume
|elastic-gpu
|network-interface
|spot-instances-request
To tag a resource after it has been created, see CreateTags .
-
getTags
The tags to apply to the resource. -
builder
-