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

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

Inherits:
Struct
  • Object
show all
Defined in:
(unknown)

Overview

Note:

When passing TagSpecification as input to an Aws::Client method, you can use a vanilla 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.

Possible values:

  • 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

Returns:

  • (String)

    The type of resource to tag.

#tagsArray<Types::Tag>

The tags to apply to the resource.

Returns:

  • (Array<Types::Tag>)

    The tags to apply to the resource.