amazonka-guardduty-2.0: Amazon GuardDuty SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.GuardDuty.CreateIPSet

Description

Creates a new IPSet, which is called a trusted IP list in the console user interface. An IPSet is a list of IP addresses that are trusted for secure communication with Amazon Web Services infrastructure and applications. GuardDuty doesn't generate findings for IP addresses that are included in IPSets. Only users from the administrator account can use this operation.

Synopsis

Creating a Request

data CreateIPSet Source #

See: newCreateIPSet smart constructor.

Constructors

CreateIPSet' 

Fields

  • clientToken :: Maybe Text

    The idempotency token for the create request.

  • tags :: Maybe (HashMap Text Text)

    The tags to be added to a new IP set resource.

  • detectorId :: Text

    The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.

  • name :: Text

    The user-friendly name to identify the IPSet.

    Allowed characters are alphanumerics, spaces, hyphens (-), and underscores (_).

  • format :: IpSetFormat

    The format of the file that contains the IPSet.

  • location :: Text

    The URI of the file that contains the IPSet.

  • activate :: Bool

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

Instances

Instances details
ToJSON CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

ToHeaders CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Methods

toHeaders :: CreateIPSet -> [Header] #

ToPath CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

ToQuery CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

AWSRequest CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Associated Types

type AWSResponse CreateIPSet #

Generic CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Associated Types

type Rep CreateIPSet :: Type -> Type #

Read CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Show CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

NFData CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Methods

rnf :: CreateIPSet -> () #

Eq CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Hashable CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

type AWSResponse CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

type Rep CreateIPSet Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

newCreateIPSet Source #

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

CreateIPSet, createIPSet_tags - The tags to be added to a new IP set resource.

CreateIPSet, createIPSet_detectorId - The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.

CreateIPSet, createIPSet_name - The user-friendly name to identify the IPSet.

Allowed characters are alphanumerics, spaces, hyphens (-), and underscores (_).

$sel:format:CreateIPSet', createIPSet_format - The format of the file that contains the IPSet.

$sel:location:CreateIPSet', createIPSet_location - The URI of the file that contains the IPSet.

$sel:activate:CreateIPSet', createIPSet_activate - A Boolean value that indicates whether GuardDuty is to start using the uploaded IPSet.

Request Lenses

createIPSet_clientToken :: Lens' CreateIPSet (Maybe Text) Source #

The idempotency token for the create request.

createIPSet_tags :: Lens' CreateIPSet (Maybe (HashMap Text Text)) Source #

The tags to be added to a new IP set resource.

createIPSet_detectorId :: Lens' CreateIPSet Text Source #

The unique ID of the detector of the GuardDuty account that you want to create an IPSet for.

createIPSet_name :: Lens' CreateIPSet Text Source #

The user-friendly name to identify the IPSet.

Allowed characters are alphanumerics, spaces, hyphens (-), and underscores (_).

createIPSet_format :: Lens' CreateIPSet IpSetFormat Source #

The format of the file that contains the IPSet.

createIPSet_location :: Lens' CreateIPSet Text Source #

The URI of the file that contains the IPSet.

createIPSet_activate :: Lens' CreateIPSet Bool Source #

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

Destructuring the Response

data CreateIPSetResponse Source #

See: newCreateIPSetResponse smart constructor.

Constructors

CreateIPSetResponse' 

Fields

Instances

Instances details
Generic CreateIPSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Associated Types

type Rep CreateIPSetResponse :: Type -> Type #

Read CreateIPSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Show CreateIPSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

NFData CreateIPSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

Methods

rnf :: CreateIPSetResponse -> () #

Eq CreateIPSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

type Rep CreateIPSetResponse Source # 
Instance details

Defined in Amazonka.GuardDuty.CreateIPSet

type Rep CreateIPSetResponse = D1 ('MetaData "CreateIPSetResponse" "Amazonka.GuardDuty.CreateIPSet" "amazonka-guardduty-2.0-2NN502sGcQRH5risQZb24c" 'False) (C1 ('MetaCons "CreateIPSetResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "ipSetId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newCreateIPSetResponse Source #

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

$sel:ipSetId:CreateIPSetResponse', createIPSetResponse_ipSetId - The ID of the IPSet resource.

Response Lenses