You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

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

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

Overview

Note:

When making an API call, you may pass TagSpecification data as a hash:

{
  resource_type: "customer-gateway", # accepts customer-gateway, dhcp-options, image, instance, internet-gateway, network-acl, network-interface, reserved-instances, route-table, snapshot, spot-instances-request, subnet, security-group, volume, vpc, vpn-connection, vpn-gateway
  tags: [
    {
      key: "String",
      value: "String",
    },
  ],
}

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

Instance Attribute Summary collapse

Instance Attribute Details

#resource_typeString

The type of resource to tag. Currently, the resource types that support tagging on creation are instance and volume.

Returns:

  • (String)


24485
24486
24487
24488
24489
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 24485

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

#tagsArray<Types::Tag>

The tags to apply to the resource.

Returns:



24485
24486
24487
24488
24489
# File 'gems/aws-sdk-ec2/lib/aws-sdk-ec2/types.rb', line 24485

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