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

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/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.

Returns:

  • (String)


45436
45437
45438
45439
45440
45441
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 45436

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

#tagsArray<Types::Tag>

The tags to apply to the resource.

Returns:



45436
45437
45438
45439
45440
45441
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 45436

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