UntagResourceCommand

Removes tags from a behavior graph.

Example Syntax

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

import { DetectiveClient, UntagResourceCommand } from "@aws-sdk/client-detective"; // ES Modules import
// const { DetectiveClient, UntagResourceCommand } = require("@aws-sdk/client-detective"); // CommonJS import
const client = new DetectiveClient(config);
const input = { // UntagResourceRequest
  ResourceArn: "STRING_VALUE", // required
  TagKeys: [ // TagKeyList // required
    "STRING_VALUE",
  ],
};
const command = new UntagResourceCommand(input);
const response = await client.send(command);
// {};

UntagResourceCommand Input

See UntagResourceCommandInput for more details

Parameter
Type
Description
ResourceArn
Required
string | undefined

The ARN of the behavior graph to remove the tags from.

TagKeys
Required
string[] | undefined

The tag keys of the tags to remove from the behavior graph. You can remove up to 50 tags at a time.

UntagResourceCommand Output

Parameter
Type
Description
$metadata
Required
ResponseMetadata
Metadata pertaining to this request.

Throws

Name
Fault
Details
AccessDeniedException
client

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

InternalServerException
server

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

ResourceNotFoundException
client

The request refers to a nonexistent resource.

ValidationException
client

The request parameters are invalid.

DetectiveServiceException
Base exception class for all service exceptions from Detective service.