amazonka-maciev2-2.0: Amazon Macie 2 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.MacieV2.UpdateAllowList

Description

Updates the settings for an allow list.

Synopsis

Creating a Request

data UpdateAllowList Source #

See: newUpdateAllowList smart constructor.

Constructors

UpdateAllowList' 

Fields

  • description :: Maybe Text

    A custom description of the allow list. The description can contain as many as 512 characters.

  • id :: Text

    The unique identifier for the Amazon Macie resource that the request applies to.

  • criteria :: AllowListCriteria

    The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression that defines a text pattern to ignore (regex).

    You can change a list's underlying criteria, such as the name of the S3 object or the regular expression to use. However, you can't change the type from s3WordsList to regex or the other way around.

  • name :: Text

    A custom name for the allow list. The name can contain as many as 128 characters.

Instances

Instances details
ToJSON UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

ToHeaders UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

ToPath UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

ToQuery UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

AWSRequest UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

Associated Types

type AWSResponse UpdateAllowList #

Generic UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

Associated Types

type Rep UpdateAllowList :: Type -> Type #

Read UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

Show UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

NFData UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

Methods

rnf :: UpdateAllowList -> () #

Eq UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

Hashable UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

type AWSResponse UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

type Rep UpdateAllowList Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

type Rep UpdateAllowList = D1 ('MetaData "UpdateAllowList" "Amazonka.MacieV2.UpdateAllowList" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "UpdateAllowList'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "criteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 AllowListCriteria) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newUpdateAllowList Source #

Create a value of UpdateAllowList 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:

UpdateAllowList, updateAllowList_description - A custom description of the allow list. The description can contain as many as 512 characters.

UpdateAllowList, updateAllowList_id - The unique identifier for the Amazon Macie resource that the request applies to.

$sel:criteria:UpdateAllowList', updateAllowList_criteria - The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression that defines a text pattern to ignore (regex).

You can change a list's underlying criteria, such as the name of the S3 object or the regular expression to use. However, you can't change the type from s3WordsList to regex or the other way around.

UpdateAllowList, updateAllowList_name - A custom name for the allow list. The name can contain as many as 128 characters.

Request Lenses

updateAllowList_description :: Lens' UpdateAllowList (Maybe Text) Source #

A custom description of the allow list. The description can contain as many as 512 characters.

updateAllowList_id :: Lens' UpdateAllowList Text Source #

The unique identifier for the Amazon Macie resource that the request applies to.

updateAllowList_criteria :: Lens' UpdateAllowList AllowListCriteria Source #

The criteria that specify the text or text pattern to ignore. The criteria can be the location and name of an S3 object that lists specific text to ignore (s3WordsList), or a regular expression that defines a text pattern to ignore (regex).

You can change a list's underlying criteria, such as the name of the S3 object or the regular expression to use. However, you can't change the type from s3WordsList to regex or the other way around.

updateAllowList_name :: Lens' UpdateAllowList Text Source #

A custom name for the allow list. The name can contain as many as 128 characters.

Destructuring the Response

data UpdateAllowListResponse Source #

See: newUpdateAllowListResponse smart constructor.

Constructors

UpdateAllowListResponse' 

Fields

Instances

Instances details
Generic UpdateAllowListResponse Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

Associated Types

type Rep UpdateAllowListResponse :: Type -> Type #

Read UpdateAllowListResponse Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

Show UpdateAllowListResponse Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

NFData UpdateAllowListResponse Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

Methods

rnf :: UpdateAllowListResponse -> () #

Eq UpdateAllowListResponse Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

type Rep UpdateAllowListResponse Source # 
Instance details

Defined in Amazonka.MacieV2.UpdateAllowList

type Rep UpdateAllowListResponse = D1 ('MetaData "UpdateAllowListResponse" "Amazonka.MacieV2.UpdateAllowList" "amazonka-maciev2-2.0-5WBPWSHaxt7LOrO1LzXg18" 'False) (C1 ('MetaCons "UpdateAllowListResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "arn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newUpdateAllowListResponse Source #

Create a value of UpdateAllowListResponse 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:

UpdateAllowListResponse, updateAllowListResponse_arn - The Amazon Resource Name (ARN) of the allow list.

UpdateAllowList, updateAllowListResponse_id - The unique identifier for the allow list.

$sel:httpStatus:UpdateAllowListResponse', updateAllowListResponse_httpStatus - The response's http status code.

Response Lenses

updateAllowListResponse_arn :: Lens' UpdateAllowListResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the allow list.

updateAllowListResponse_id :: Lens' UpdateAllowListResponse (Maybe Text) Source #

The unique identifier for the allow list.