You are viewing documentation for version 2 of the AWS SDK for Ruby. Version 3 documentation can be found here.
Class: Aws::DirectoryService::Types::Tag
- Inherits:
-
Struct
- Object
- Struct
- Aws::DirectoryService::Types::Tag
- Defined in:
- (unknown)
Overview
When passing Tag as input to an Aws::Client method, you can use a vanilla Hash:
{
key: "TagKey", # required
value: "TagValue", # required
}
Metadata assigned to a directory consisting of a key-value pair.
Instance Attribute Summary collapse
-
#key ⇒ String
Required name of the tag.
-
#value ⇒ String
The optional value of the tag.
Instance Attribute Details
#key ⇒ String
Required name of the tag. The string value can be Unicode characters and cannot be prefixed with \"aws:\". The string can contain only the set of Unicode letters, digits, white-space, \'_\', \'.\', \'/\', \'=\', \'+\', \'-\' (Java regex: \"^([\\p`L\\pZ\\pN`_.:/=+\\-]*)$\").
#value ⇒ String
The optional value of the tag. The string value can be Unicode characters. The string can contain only the set of Unicode letters, digits, white-space, \'_\', \'.\', \'/\', \'=\', \'+\', \'-\' (Java regex: \"^([\\p`L\\pZ\\pN`_.:/=+\\-]*)$\").