libZSservicesZSamazonka-guarddutyZSamazonka-guardduty
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.GuardDuty.CreateDetector

Description

Creates a single Amazon GuardDuty detector. A detector is a resource that represents the GuardDuty service. To start using GuardDuty, you must create a detector in each Region where you enable the service. You can have only one detector per account per Region. All data sources are enabled in a new detector by default.

Synopsis

Creating a Request

data CreateDetector Source #

See: newCreateDetector smart constructor.

Constructors

CreateDetector' 

Fields

Instances

Instances details
Eq CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Read CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Show CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Generic CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Associated Types

type Rep CreateDetector :: Type -> Type #

NFData CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Methods

rnf :: CreateDetector -> () #

Hashable CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

ToJSON CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

AWSRequest CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Associated Types

type AWSResponse CreateDetector #

ToHeaders CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

ToPath CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

ToQuery CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

type Rep CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

type Rep CreateDetector = D1 ('MetaData "CreateDetector" "Amazonka.GuardDuty.CreateDetector" "libZSservicesZSamazonka-guarddutyZSamazonka-guardduty" 'False) (C1 ('MetaCons "CreateDetector'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "clientToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "findingPublishingFrequency") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FindingPublishingFrequency))) :*: (S1 ('MetaSel ('Just "dataSources") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DataSourceConfigurations)) :*: (S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "enable") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Bool)))))
type AWSResponse CreateDetector Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

newCreateDetector Source #

Create a value of CreateDetector 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:clientToken:CreateDetector', createDetector_clientToken - The idempotency token for the create request.

$sel:findingPublishingFrequency:CreateDetector', createDetector_findingPublishingFrequency - A value that specifies how frequently updated findings are exported.

$sel:dataSources:CreateDetector', createDetector_dataSources - Describes which data sources will be enabled for the detector.

$sel:tags:CreateDetector', createDetector_tags - The tags to be added to a new detector resource.

$sel:enable:CreateDetector', createDetector_enable - A Boolean value that specifies whether the detector is to be enabled.

Request Lenses

createDetector_clientToken :: Lens' CreateDetector (Maybe Text) Source #

The idempotency token for the create request.

createDetector_findingPublishingFrequency :: Lens' CreateDetector (Maybe FindingPublishingFrequency) Source #

A value that specifies how frequently updated findings are exported.

createDetector_dataSources :: Lens' CreateDetector (Maybe DataSourceConfigurations) Source #

Describes which data sources will be enabled for the detector.

createDetector_tags :: Lens' CreateDetector (Maybe (HashMap Text Text)) Source #

The tags to be added to a new detector resource.

createDetector_enable :: Lens' CreateDetector Bool Source #

A Boolean value that specifies whether the detector is to be enabled.

Destructuring the Response

data CreateDetectorResponse Source #

See: newCreateDetectorResponse smart constructor.

Constructors

CreateDetectorResponse' 

Fields

Instances

Instances details
Eq CreateDetectorResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Read CreateDetectorResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Show CreateDetectorResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Generic CreateDetectorResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Associated Types

type Rep CreateDetectorResponse :: Type -> Type #

NFData CreateDetectorResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

Methods

rnf :: CreateDetectorResponse -> () #

type Rep CreateDetectorResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateDetector

type Rep CreateDetectorResponse = D1 ('MetaData "CreateDetectorResponse" "Amazonka.GuardDuty.CreateDetector" "libZSservicesZSamazonka-guarddutyZSamazonka-guardduty" 'False) (C1 ('MetaCons "CreateDetectorResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "detectorId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newCreateDetectorResponse Source #

Create a value of CreateDetectorResponse 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:detectorId:CreateDetectorResponse', createDetectorResponse_detectorId - The unique ID of the created detector.

$sel:httpStatus:CreateDetectorResponse', createDetectorResponse_httpStatus - The response's http status code.

Response Lenses