Skip to content

Tag Resource

paymentcryptographycontrolplane_tag_resource R Documentation

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

Description

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 create_key.

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

Related operations:

  • list_tags_for_resource

  • untag_resource

Usage

paymentcryptographycontrolplane_tag_resource(ResourceArn, Tags)

Arguments

ResourceArn

[required] The KeyARN of the key whose tags are being updated.

Tags

[required] 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 tag_resource 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.

Value

An empty list.

Request syntax

svc$tag_resource(
  ResourceArn = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)