Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ListResourceTagsCommand

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:

example

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);
see

ListResourceTagsCommandInput for command's input shape.

see

ListResourceTagsCommandOutput for command's response shape.

see

config for KMSClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: ListResourceTagsCommandInput

Readonly middlewareStack

Methods

Static getEndpointParameterInstructions