Class: Aws::EC2::Types::TagSpecification

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb

Overview

The tags to apply to a resource when the resource is being created.

The Valid Values lists all the resource types that can be tagged. However, the action you're using might not support tagging all of these resource types. If you try to tag a resource type that is unsupported for the action you're using, you'll get an error.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#resource_typeString

The type of resource to tag on creation.

Returns:

  • (String)


57321
57322
57323
57324
57325
57326
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 57321

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

#tagsArray<Types::Tag>

The tags to apply to the resource.

Returns:



57321
57322
57323
57324
57325
57326
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 57321

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