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

Class: Aws::DirectoryService::Types::Tag

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/types.rb

Overview

Note:

When making an API call, you may pass Tag data as a hash:

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

Metadata assigned to a directory consisting of a key-value pair.

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

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\}\\p{Z\}\\p{N\}_.:/=+\\-]*)$").

Returns:

  • (String)


2493
2494
2495
2496
2497
# File 'gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/types.rb', line 2493

class Tag < Struct.new(
  :key,
  :value)
  include Aws::Structure
end

#valueString

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\}\\p{Z\}\\p{N\}_.:/=+\\-]*)$").

Returns:

  • (String)


2493
2494
2495
2496
2497
# File 'gems/aws-sdk-directoryservice/lib/aws-sdk-directoryservice/types.rb', line 2493

class Tag < Struct.new(
  :key,
  :value)
  include Aws::Structure
end