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

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

Overview

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.

Do not include confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

For information about the rules that apply to tag keys and tag values, see [User-Defined Tag Restrictions] in the *Amazon Web Services Billing and Cost Management User Guide*.

[1]: docs.aws.amazon.com/awsaccountbilling/latest/aboutv2/allocation-tag-restrictions.html

Constant Summary collapse

SENSITIVE =
[]

Instance Attribute Summary collapse

Instance Attribute Details

#tag_keyString

The key of the tag.

Returns:

  • (String)


5619
5620
5621
5622
5623
5624
# File 'lib/aws-sdk-kms/types.rb', line 5619

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

#tag_valueString

The value of the tag.

Returns:

  • (String)


5619
5620
5621
5622
5623
5624
# File 'lib/aws-sdk-kms/types.rb', line 5619

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