Jump to Content

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.

Class ListTagsForResourceCommandProtected

Returns a list of the tags associated with a notification rule.

Example

Use a bare-bones client and the command you need to make an API call.

import { CodestarNotificationsClient, ListTagsForResourceCommand } from "@aws-sdk/client-codestar-notifications"; // ES Modules import
// const { CodestarNotificationsClient, ListTagsForResourceCommand } = require("@aws-sdk/client-codestar-notifications"); // CommonJS import
const client = new CodestarNotificationsClient(config);
const input = { // ListTagsForResourceRequest
Arn: "STRING_VALUE", // required
};
const command = new ListTagsForResourceCommand(input);
const response = await client.send(command);
// { // ListTagsForResourceResult
// Tags: { // Tags
// "<keys>": "STRING_VALUE",
// },
// };

Param

ListTagsForResourceCommandInput

Returns

ListTagsForResourceCommandOutput

See

Throws

ResourceNotFoundException (client fault)

AWS CodeStar Notifications can't find a resource that matches the provided ARN.

Throws

ValidationException (client fault)

One or more parameter values are not valid.

Throws

CodestarNotificationsServiceException

Base exception class for all service exceptions from CodestarNotifications service.

Hierarchy

Constructors

Properties

Methods