Class: Aws::EC2::Types::LaunchTemplateTagSpecificationRequest
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::LaunchTemplateTagSpecificationRequest
- Includes:
- Structure
- Defined in:
- lib/aws-sdk-ec2/types.rb
Overview
The tags specification for the resources that are created during instance launch.
Constant Summary collapse
- SENSITIVE =
[]
Instance Attribute Summary collapse
-
#resource_type ⇒ String
The type of resource to tag.
-
#tags ⇒ Array<Types::Tag>
The tags to apply to the resource.
Instance Attribute Details
#resource_type ⇒ String
The type of resource to tag.
Valid Values lists all resource types for Amazon EC2 that can be tagged. When you create a launch template, you can specify tags for the following resource types only: ‘instance` | `volume` | `elastic-gpu` | `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 an Elastic GPU.
To tag a resource after it has been created, see [CreateTags].
[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html
44968 44969 44970 44971 44972 44973 |
# File 'lib/aws-sdk-ec2/types.rb', line 44968 class LaunchTemplateTagSpecificationRequest < Struct.new( :resource_type, :tags) SENSITIVE = [] include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
The tags to apply to the resource.
44968 44969 44970 44971 44972 44973 |
# File 'lib/aws-sdk-ec2/types.rb', line 44968 class LaunchTemplateTagSpecificationRequest < Struct.new( :resource_type, :tags) SENSITIVE = [] include Aws::Structure end |