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.
Protected
Returns a list of the tags associated with a notification rule.
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 importconst 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",// },// };
ListTagsForResourceCommandInput
ListTagsForResourceCommandOutput
input
response
config
ResourceNotFoundException (client fault)
AWS CodeStar Notifications can't find a resource that matches the provided ARN.
ValidationException (client fault)
One or more parameter values are not valid.
CodestarNotificationsServiceException
Base exception class for all service exceptions from CodestarNotifications service.
Readonly
Static
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.
Param
ListTagsForResourceCommandInput
Returns
ListTagsForResourceCommandOutput
See
input
shape.response
shape.config
shape.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.