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 the tag values that are assigned to a behavior graph.

Example

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

import { DetectiveClient, ListTagsForResourceCommand } from "@aws-sdk/client-detective"; // ES Modules import
// const { DetectiveClient, ListTagsForResourceCommand } = require("@aws-sdk/client-detective"); // CommonJS import
const client = new DetectiveClient(config);
const input = { // ListTagsForResourceRequest
ResourceArn: "STRING_VALUE", // required
};
const command = new ListTagsForResourceCommand(input);
const response = await client.send(command);
// { // ListTagsForResourceResponse
// Tags: { // TagMap
// "<keys>": "STRING_VALUE",
// },
// };

Param

ListTagsForResourceCommandInput

Returns

ListTagsForResourceCommandOutput

See

Throws

AccessDeniedException (client fault)

The request issuer does not have permission to access this resource or perform this operation.

Throws

InternalServerException (server fault)

The request was valid but failed because of a problem with the service.

Throws

ResourceNotFoundException (client fault)

The request refers to a nonexistent resource.

Throws

ValidationException (client fault)

The request parameters are invalid.

Throws

DetectiveServiceException

Base exception class for all service exceptions from Detective service.

Hierarchy

Constructors

Properties

Methods