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

Class: Aws::Inspector::Types::Tag

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

Overview

Note:

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

{
  key: "TagKey", # required
  value: "TagValue",
}

A key and value pair. This data type is used as a request parameter in the SetTagsForResource action and a response element in the ListTagsForResource action.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

A tag key.

Returns:

  • (String)

    A tag key.

#valueString

A value assigned to a tag key.

Returns:

  • (String)

    A value assigned to a tag key.