class Aws::KMS::Types::TagResourceRequest

@note When making an API call, you may pass TagResourceRequest

data as a hash:

    {
      key_id: "KeyIdType", # required
      tags: [ # required
        {
          tag_key: "TagKeyType", # required
          tag_value: "TagValueType", # required
        },
      ],
    }

@!attribute [rw] key_id

Identifies a customer managed key in the account and Region.

Specify the key ID or key ARN of the KMS key.

For example:

* Key ID: `1234abcd-12ab-34cd-56ef-1234567890ab`

* Key ARN:
  `arn:aws:kms:us-east-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab`

To get the key ID and key ARN for a KMS key, use ListKeys or
DescribeKey.
@return [String]

@!attribute [rw] tags

One or more tags.

Each tag consists of a tag key and a tag value. The tag value can be
an empty (null) string.

You cannot have more than one tag on a KMS key with the same tag
key. If you specify an existing tag key with a different tag value,
KMS replaces the current tag value with the specified one.
@return [Array<Types::Tag>]

@see docs.aws.amazon.com/goto/WebAPI/kms-2014-11-01/TagResourceRequest AWS API Documentation

Constants

SENSITIVE