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 the tag values that are assigned to a behavior graph.
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 importconst 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",// },// };
ListTagsForResourceCommandInput
ListTagsForResourceCommandOutput
input
response
config
AccessDeniedException (client fault)
The request issuer does not have permission to access this resource or perform this operation.
InternalServerException (server fault)
The request was valid but failed because of a problem with the service.
ResourceNotFoundException (client fault)
The request refers to a nonexistent resource.
ValidationException (client fault)
The request parameters are invalid.
DetectiveServiceException
Base exception class for all service exceptions from Detective service.
Readonly
Static
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.
Param
ListTagsForResourceCommandInput
Returns
ListTagsForResourceCommandOutput
See
input
shape.response
shape.config
shape.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.