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

Class: Aws::Lightsail::Types::TagResourceRequest

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

Overview

Note:

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

{
  resource_name: "ResourceName", # required
  tags: [ # required
    {
      key: "TagKey",
      value: "TagValue",
    },
  ],
}

Instance Attribute Summary collapse

Instance Attribute Details

#resource_nameString

The name of the resource to which you are adding tags.

Returns:

  • (String)


7432
7433
7434
7435
7436
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 7432

class TagResourceRequest < Struct.new(
  :resource_name,
  :tags)
  include Aws::Structure
end

#tagsArray<Types::Tag>

The tag key and optional value.

Returns:



7432
7433
7434
7435
7436
# File 'gems/aws-sdk-lightsail/lib/aws-sdk-lightsail/types.rb', line 7432

class TagResourceRequest < Struct.new(
  :resource_name,
  :tags)
  include Aws::Structure
end