Class: Aws::EC2::Types::LaunchTemplateTagSpecificationRequest

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#resource_typeString

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` | `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].

[1]: docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CreateTags.html

Returns:

  • (String)


45547
45548
45549
45550
45551
45552
# File 'lib/aws-sdk-ec2/types.rb', line 45547

class LaunchTemplateTagSpecificationRequest < Struct.new(
  :resource_type,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end

#tagsArray<Types::Tag>

The tags to apply to the resource.

Returns:



45547
45548
45549
45550
45551
45552
# File 'lib/aws-sdk-ec2/types.rb', line 45547

class LaunchTemplateTagSpecificationRequest < Struct.new(
  :resource_type,
  :tags)
  SENSITIVE = []
  include Aws::Structure
end