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

Class: Aws::Organizations::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", # required
}

A custom key-value pair associated with a resource within your organization.

You can attach tags to any of the following organization resources.

  • AWS account

  • Organizational unit (OU)

  • Organization root

  • Policy

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The key identifier, or name, of the tag.

Returns:

  • (String)

    The key identifier, or name, of the tag.

#valueString

The string value that\'s associated with the key of the tag. You can set the value of a tag to an empty string, but you can\'t set the value of a tag to null.

Returns:

  • (String)

    The string value that\'s associated with the key of the tag.