AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

Class: Aws::KMS::Types::Tag

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

Overview

Note:

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

{
  tag_key: "TagKeyType", # required
  tag_value: "TagValueType", # required
}

A key-value pair. A tag consists of a tag key and a tag value. Tag keys and tag values are both required, but tag values can be empty (null) strings.

For information about the rules that apply to tag keys and tag values, see User-Defined Tag Restrictions in the AWS Billing and Cost Management User Guide.

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#tag_keyString

The key of the tag.

Returns:

  • (String)


4269
4270
4271
4272
4273
4274
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4269

class Tag < Struct.new(
  :tag_key,
  :tag_value)
  SENSITIVE = []
  include Aws::Structure
end

#tag_valueString

The value of the tag.

Returns:

  • (String)


4269
4270
4271
4272
4273
4274
# File 'gems/aws-sdk-kms/lib/aws-sdk-kms/types.rb', line 4269

class Tag < Struct.new(
  :tag_key,
  :tag_value)
  SENSITIVE = []
  include Aws::Structure
end