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.CreateThreatIntelSet

Description

Creates a new ThreatIntelSet. ThreatIntelSets consist of known malicious IP addresses. GuardDuty generates findings based on ThreatIntelSets. Only users of the administrator account can use this operation.

Synopsis

Creating a Request

data CreateThreatIntelSet Source #

See: newCreateThreatIntelSet smart constructor.

Constructors

CreateThreatIntelSet' 

Fields

  • clientToken :: Maybe Text

    The idempotency token for the create request.

  • tags :: Maybe (HashMap Text Text)

    The tags to be added to a new threat list resource.

  • detectorId :: Text

    The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.

  • name :: Text

    A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.

  • format :: ThreatIntelSetFormat

    The format of the file that contains the ThreatIntelSet.

  • location :: Text

    The URI of the file that contains the ThreatIntelSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.

  • activate :: Bool

    A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.

Instances

Instances details
Eq CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Read CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Show CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Generic CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Associated Types

type Rep CreateThreatIntelSet :: Type -> Type #

NFData CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Methods

rnf :: CreateThreatIntelSet -> () #

Hashable CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

ToJSON CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

AWSRequest CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Associated Types

type AWSResponse CreateThreatIntelSet #

ToHeaders CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

ToPath CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

ToQuery CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

type Rep CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

type AWSResponse CreateThreatIntelSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

newCreateThreatIntelSet Source #

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

$sel:tags:CreateThreatIntelSet', createThreatIntelSet_tags - The tags to be added to a new threat list resource.

$sel:detectorId:CreateThreatIntelSet', createThreatIntelSet_detectorId - The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.

$sel:name:CreateThreatIntelSet', createThreatIntelSet_name - A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.

$sel:format:CreateThreatIntelSet', createThreatIntelSet_format - The format of the file that contains the ThreatIntelSet.

$sel:location:CreateThreatIntelSet', createThreatIntelSet_location - The URI of the file that contains the ThreatIntelSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.

$sel:activate:CreateThreatIntelSet', createThreatIntelSet_activate - A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.

Request Lenses

createThreatIntelSet_clientToken :: Lens' CreateThreatIntelSet (Maybe Text) Source #

The idempotency token for the create request.

createThreatIntelSet_tags :: Lens' CreateThreatIntelSet (Maybe (HashMap Text Text)) Source #

The tags to be added to a new threat list resource.

createThreatIntelSet_detectorId :: Lens' CreateThreatIntelSet Text Source #

The unique ID of the detector of the GuardDuty account that you want to create a threatIntelSet for.

createThreatIntelSet_name :: Lens' CreateThreatIntelSet Text Source #

A user-friendly ThreatIntelSet name displayed in all findings that are generated by activity that involves IP addresses included in this ThreatIntelSet.

createThreatIntelSet_format :: Lens' CreateThreatIntelSet ThreatIntelSetFormat Source #

The format of the file that contains the ThreatIntelSet.

createThreatIntelSet_location :: Lens' CreateThreatIntelSet Text Source #

The URI of the file that contains the ThreatIntelSet. For example: https://s3.us-west-2.amazonaws.com/my-bucket/my-object-key.

createThreatIntelSet_activate :: Lens' CreateThreatIntelSet Bool Source #

A Boolean value that indicates whether GuardDuty is to start using the uploaded ThreatIntelSet.

Destructuring the Response

data CreateThreatIntelSetResponse Source #

See: newCreateThreatIntelSetResponse smart constructor.

Constructors

CreateThreatIntelSetResponse' 

Fields

Instances

Instances details
Eq CreateThreatIntelSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Read CreateThreatIntelSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Show CreateThreatIntelSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Generic CreateThreatIntelSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

Associated Types

type Rep CreateThreatIntelSetResponse :: Type -> Type #

NFData CreateThreatIntelSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

type Rep CreateThreatIntelSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateThreatIntelSet

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

newCreateThreatIntelSetResponse Source #

Create a value of CreateThreatIntelSetResponse 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:httpStatus:CreateThreatIntelSetResponse', createThreatIntelSetResponse_httpStatus - The response's http status code.

$sel:threatIntelSetId:CreateThreatIntelSetResponse', createThreatIntelSetResponse_threatIntelSetId - The ID of the ThreatIntelSet resource.

Response Lenses