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
Use a bare-bones client and the command you need to make an API call.
import { KMSClient, ListResourceTagsCommand } from "@aws-sdk/client-kms"; // ES Modules import // const { KMSClient, ListResourceTagsCommand } = require("@aws-sdk/client-kms"); // CommonJS import const client = new KMSClient(config); const command = new ListResourceTagsCommand(input); const response = await client.send(command);
ListResourceTagsCommandInput for command's
input
shape.ListResourceTagsCommandOutput for command's
response
shape.config for KMSClient's
config
shape.