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 resources that are created during instance launch.
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();
- See Also:
-
Nested Class Summary
Nested ClassesModifier 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.You can specify tags for the following resource types only:
instance
|volume
|network-interface
|spot-instances-request
. If the instance does not include the resource type that you specify, the instance launch fails. For example, not all instance types include a volume.To tag a resource after it has been created, see CreateTags .
- See Also:
-
getTags
The tags to apply to the resource.- See Also:
-
builder
-