New API Documentation - Developer Preview Available
We are excited to announce the developer preview of our new API documentation for AWS SDK for JavaScript v3. Please follow instructions on the landing page to leave us your feedback.
For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in
the Amazon Web Services General Reference. For information about using
tags in KMS, see Tagging
keys.
Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.
Returns all tags on the specified KMS key.
For general information about tags, including the format and syntax, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference. For information about using tags in KMS, see Tagging keys.
Cross-account use: No. You cannot perform this operation on a KMS key in a different Amazon Web Services account.
Required permissions: kms:ListResourceTags (key policy)
Related operations:
CreateKey
ReplicateKey
TagResource
UntagResource
Example
Use a bare-bones client and the command you need to make an API call.
Param
ListResourceTagsCommandInput
Returns
ListResourceTagsCommandOutput
See
input
shape.response
shape.config
shape.Throws
InvalidArnException (client fault)
The request was rejected because a specified ARN, or an ARN in a key policy, is not valid.
Throws
InvalidMarkerException (client fault)
The request was rejected because the marker that specifies where pagination should next begin is not valid.
Throws
KMSInternalException (server fault)
The request was rejected because an internal exception occurred. The request can be retried.
Throws
NotFoundException (client fault)
The request was rejected because the specified entity or resource could not be found.
Throws
KMSServiceException
Base exception class for all service exceptions from KMS service.
Example
To list tags for a KMS key