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

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

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

Overview

Note:

When passing TagResourceRequest as input to an Aws::Client method, you can use a vanilla Hash:

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

Instance Attribute Summary collapse

Instance Attribute Details

#resource_arnString

The Amazon Resource Name (ARN) of the resource to which you want to add a tag.

Returns:

  • (String)

    The Amazon Resource Name (ARN) of the resource to which you want to add a tag.

#resource_nameString

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

Returns:

  • (String)

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

#tagsArray<Types::Tag>

The tag key and optional value.

Returns:

  • (Array<Types::Tag>)

    The tag key and optional value.