- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
DeleteGraphCommand
Disables the specified behavior graph and queues it to be deleted. This operation removes the behavior graph from each member account's list of behavior graphs.
DeleteGraph
can only be called by the administrator account for a behavior graph.
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { DetectiveClient, DeleteGraphCommand } from "@aws-sdk/client-detective"; // ES Modules import
// const { DetectiveClient, DeleteGraphCommand } = require("@aws-sdk/client-detective"); // CommonJS import
const client = new DetectiveClient(config);
const input = { // DeleteGraphRequest
GraphArn: "STRING_VALUE", // required
};
const command = new DeleteGraphCommand(input);
const response = await client.send(command);
// {};
DeleteGraphCommand Input
See DeleteGraphCommandInput for more details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
GraphArn Required | string | undefined | The ARN of the behavior graph to disable. |
DeleteGraphCommand Output
See DeleteGraphCommandOutput for details
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
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. |