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

Class: Aws::DocDB::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: "String",
  value: "String",
}

Metadata assigned to an Amazon DocumentDB resource consisting of a key-value pair.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

The required name of the tag. The string value can be from 1 to 128 Unicode characters in length and can\'t be prefixed with \"aws:\" or \"rds:\". The string can contain only the set of Unicode letters, digits, white space, \'_\', \'.\', \'/\', \'=\', \'+\', \'-\' (Java regex: \"^([\\p`L\\pZ\\pN`_.:/=+\\-]*)$\").

Returns:

  • (String)

    The required name of the tag.

#valueString

The optional value of the tag. The string value can be from 1 to 256 Unicode characters in length and can\'t be prefixed with \"aws:\" or \"rds:\". The string can contain only the set of Unicode letters, digits, white space, \'_\', \'.\', \'/\', \'=\', \'+\', \'-\' (Java regex: \"^([\\p`L\\pZ\\pN`_.:/=+\\-]*)$\").

Returns:

  • (String)

    The optional value of the tag.