Options
All
  • Public
  • Public/Protected
  • All
Menu

Class CreateGraphCommand

Creates a new behavior graph for the calling account, and sets that account as the administrator account. This operation is called by the account that is enabling Detective.

Before you try to enable Detective, make sure that your account has been enrolled in Amazon GuardDuty for at least 48 hours. If you do not meet this requirement, you cannot enable Detective. If you do meet the GuardDuty prerequisite, then when you make the request to enable Detective, it checks whether your data volume is within the Detective quota. If it exceeds the quota, then you cannot enable Detective.

The operation also enables Detective for the calling account in the currently selected Region. It returns the ARN of the new behavior graph.

CreateGraph triggers a process to create the corresponding data tables for the new behavior graph.

An account can only be the administrator account for one behavior graph within a Region. If the same account calls CreateGraph with the same administrator account, it always returns the same behavior graph ARN. It does not create a new behavior graph.

example

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

import { DetectiveClient, CreateGraphCommand } from "@aws-sdk/client-detective"; // ES Modules import
// const { DetectiveClient, CreateGraphCommand } = require("@aws-sdk/client-detective"); // CommonJS import
const client = new DetectiveClient(config);
const command = new CreateGraphCommand(input);
const response = await client.send(command);
see

CreateGraphCommandInput for command's input shape.

see

CreateGraphCommandOutput for command's response shape.

see

config for DetectiveClient's config shape.

Hierarchy

Implements

Index

Constructors

constructor

Properties

Readonly input

input: CreateGraphCommandInput

Readonly middlewareStack

middlewareStack: IMiddlewareStack<CreateGraphCommandInput, CreateGraphCommandOutput>

Methods

Static getEndpointParameterInstructions