Interface CfnLaunchTemplate.LaunchTemplateTagSpecificationProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnLaunchTemplate.LaunchTemplateTagSpecificationProperty.Jsii$Proxy
- Enclosing class:
CfnLaunchTemplate
@Stability(Stable)
public static interface CfnLaunchTemplate.LaunchTemplateTagSpecificationProperty
extends software.amazon.jsii.JsiiSerializable
Specifies the tags to apply to the launch template during creation.
To specify the tags for the resources that are created during instance launch, use AWS::EC2::LaunchTemplate TagSpecification .
LaunchTemplateTagSpecification is a property of AWS::EC2::LaunchTemplate .
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.*;
LaunchTemplateTagSpecificationProperty launchTemplateTagSpecificationProperty = LaunchTemplateTagSpecificationProperty.builder()
.resourceType("resourceType")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnLaunchTemplate.LaunchTemplateTagSpecificationPropertystatic final classAn implementation forCfnLaunchTemplate.LaunchTemplateTagSpecificationProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getResourceType
The type of resource.To tag a launch template,
ResourceTypemust belaunch-template.- See Also:
-
getTags
The tags for the resource.- See Also:
-
builder
@Stability(Stable) static CfnLaunchTemplate.LaunchTemplateTagSpecificationProperty.Builder builder()
-