libZSservicesZSamazonka-detectiveZSamazonka-detective
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Detective.CreateGraph

Description

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.

Synopsis

Creating a Request

data CreateGraph Source #

See: newCreateGraph smart constructor.

Constructors

CreateGraph' 

Fields

  • tags :: Maybe (HashMap Text Text)

    The tags to assign to the new behavior graph. You can add up to 50 tags. For each tag, you provide the tag key and the tag value. Each tag key can contain up to 128 characters. Each tag value can contain up to 256 characters.

Instances

Instances details
Eq CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Read CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Show CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Generic CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Associated Types

type Rep CreateGraph :: Type -> Type #

NFData CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Methods

rnf :: CreateGraph -> () #

Hashable CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

ToJSON CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

AWSRequest CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Associated Types

type AWSResponse CreateGraph #

ToHeaders CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Methods

toHeaders :: CreateGraph -> [Header] #

ToPath CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

ToQuery CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

type Rep CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

type Rep CreateGraph = D1 ('MetaData "CreateGraph" "Amazonka.Detective.CreateGraph" "libZSservicesZSamazonka-detectiveZSamazonka-detective" 'False) (C1 ('MetaCons "CreateGraph'" 'PrefixI 'True) (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text)))))
type AWSResponse CreateGraph Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

newCreateGraph :: CreateGraph Source #

Create a value of CreateGraph with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:tags:CreateGraph', createGraph_tags - The tags to assign to the new behavior graph. You can add up to 50 tags. For each tag, you provide the tag key and the tag value. Each tag key can contain up to 128 characters. Each tag value can contain up to 256 characters.

Request Lenses

createGraph_tags :: Lens' CreateGraph (Maybe (HashMap Text Text)) Source #

The tags to assign to the new behavior graph. You can add up to 50 tags. For each tag, you provide the tag key and the tag value. Each tag key can contain up to 128 characters. Each tag value can contain up to 256 characters.

Destructuring the Response

data CreateGraphResponse Source #

See: newCreateGraphResponse smart constructor.

Constructors

CreateGraphResponse' 

Fields

Instances

Instances details
Eq CreateGraphResponse Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Read CreateGraphResponse Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Show CreateGraphResponse Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Generic CreateGraphResponse Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Associated Types

type Rep CreateGraphResponse :: Type -> Type #

NFData CreateGraphResponse Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

Methods

rnf :: CreateGraphResponse -> () #

type Rep CreateGraphResponse Source # 
Instance details

Defined in Amazonka.Detective.CreateGraph

type Rep CreateGraphResponse = D1 ('MetaData "CreateGraphResponse" "Amazonka.Detective.CreateGraph" "libZSservicesZSamazonka-detectiveZSamazonka-detective" 'False) (C1 ('MetaCons "CreateGraphResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "graphArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateGraphResponse Source #

Create a value of CreateGraphResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:graphArn:CreateGraphResponse', createGraphResponse_graphArn - The ARN of the new behavior graph.

$sel:httpStatus:CreateGraphResponse', createGraphResponse_httpStatus - The response's http status code.

Response Lenses