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

Class: Aws::RDS::Types::Tag

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

Overview

Note:

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

{
  key: "String",
  value: "String",
}

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

Instance Attribute Summary collapse

Instance Attribute Details

#keyString

A key is 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 only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L\}\\p{Z\}\\p{N\}_.:/=+\\-]*)$").

Returns:

  • (String)


12970
12971
12972
12973
12974
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/types.rb', line 12970

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

#valueString

A value is 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 only contain only the set of Unicode letters, digits, white-space, '_', '.', '/', '=', '+', '-' (Java regex: "^([\\p{L\}\\p{Z\}\\p{N\}_.:/=+\\-]*)$").

Returns:

  • (String)


12970
12971
12972
12973
12974
# File 'gems/aws-sdk-rds/lib/aws-sdk-rds/types.rb', line 12970

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