Class: Aws::EC2::Types::TagSpecification
- Inherits:
-
Struct
- Object
- Struct
- Aws::EC2::Types::TagSpecification
- Includes:
- Structure
- Defined in:
- 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
-
#resource_type ⇒ String
The type of resource to tag.
-
#tags ⇒ Array<Types::Tag>
The tags to apply to the resource.
Instance Attribute Details
#resource_type ⇒ String
The type of resource to tag. Currently, the resource types that support tagging on creation are ‘instance` and `volume`.
23899 23900 23901 23902 23903 |
# File 'lib/aws-sdk-ec2/types.rb', line 23899 class TagSpecification < Struct.new( :resource_type, :tags) include Aws::Structure end |
#tags ⇒ Array<Types::Tag>
The tags to apply to the resource.
23899 23900 23901 23902 23903 |
# File 'lib/aws-sdk-ec2/types.rb', line 23899 class TagSpecification < Struct.new( :resource_type, :tags) include Aws::Structure end |