Skip to content

/AWS1/CL_PCY=>TAGRESOURCE()

About TagResource

Adds or edits tags on an Amazon Web Services Payment Cryptography key.

Tagging or untagging an Amazon Web Services Payment Cryptography key can allow or deny permission to the key.

Each tag consists of a tag key and a tag value, both of which are case-sensitive strings. The tag value can be an empty (null) string. To add a tag, specify a new tag key and a tag value. To edit a tag, specify an existing tag key and a new tag value. You can also add tags to an Amazon Web Services Payment Cryptography key when you create it with CreateKey.

Cross-account use: This operation can't be used across different Amazon Web Services accounts.

Related operations:

Method Signature

IMPORTING

Required arguments:

IV_RESOURCEARN TYPE /AWS1/PCYRESOURCEARN /AWS1/PCYRESOURCEARN

The KeyARN of the key whose tags are being updated.

IT_TAGS TYPE /AWS1/CL_PCYTAG=>TT_TAGS TT_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 can't have more than one tag on an Amazon Web Services Payment Cryptography key with the same tag key. If you specify an existing tag key with a different tag value, Amazon Web Services Payment Cryptography replaces the current tag value with the new one.

Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

To use this parameter, you must have TagResource permission in an IAM policy.

Don't include personal, confidential or sensitive information in this field. This field may be displayed in plaintext in CloudTrail logs and other output.

RETURNING

OO_OUTPUT TYPE REF TO /AWS1/CL_PCYTAGRESOURCEOUTPUT /AWS1/CL_PCYTAGRESOURCEOUTPUT