TagSpecificationArgs

data class TagSpecificationArgs(val resourceType: Output<String>? = null, val tags: Output<List<LaunchTemplateTagArgs>>? = null) : ConvertibleToJava<TagSpecificationArgs>

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.

Constructors

Link copied to clipboard
constructor(resourceType: Output<String>? = null, tags: Output<List<LaunchTemplateTagArgs>>? = null)

Properties

Link copied to clipboard
val resourceType: Output<String>? = null

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.

Link copied to clipboard
val tags: Output<List<LaunchTemplateTagArgs>>? = null

The tags to apply to the resource.

Functions

Link copied to clipboard
open override fun toJava(): TagSpecificationArgs