libZSservicesZSamazonka-maciev2ZSamazonka-maciev2
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.MacieV2.CreateFindingsFilter

Description

Creates and defines the criteria and other settings for a findings filter.

Synopsis

Creating a Request

data CreateFindingsFilter Source #

See: newCreateFindingsFilter smart constructor.

Constructors

CreateFindingsFilter' 

Fields

  • clientToken :: Maybe Text

    A unique, case-sensitive token that you provide to ensure the idempotency of the request.

  • description :: Maybe Text

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

    We strongly recommend that you avoid including any sensitive data in the description of a filter. Other users of your account might be able to see the filter's description, depending on the actions that they're allowed to perform in Amazon Macie.

  • tags :: Maybe (HashMap Text Text)

    A map of key-value pairs that specifies the tags to associate with the filter.

    A findings filter can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

  • position :: Maybe Int

    The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.

  • action :: FindingsFilterAction

    The action to perform on findings that meet the filter criteria (findingCriteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.

  • findingCriteria :: FindingCriteria

    The criteria to use to filter findings.

  • name :: Text

    A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters.

    We strongly recommend that you avoid including any sensitive data in the name of a filter. Other users of your account might be able to see the filter's name, depending on the actions that they're allowed to perform in Amazon Macie.

Instances

Instances details
Eq CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Read CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Show CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Generic CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Associated Types

type Rep CreateFindingsFilter :: Type -> Type #

NFData CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Methods

rnf :: CreateFindingsFilter -> () #

Hashable CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

ToJSON CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

AWSRequest CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Associated Types

type AWSResponse CreateFindingsFilter #

ToHeaders CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

ToPath CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

ToQuery CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

type Rep CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

type AWSResponse CreateFindingsFilter Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

newCreateFindingsFilter Source #

Create a value of CreateFindingsFilter 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:CreateFindingsFilter', createFindingsFilter_clientToken - A unique, case-sensitive token that you provide to ensure the idempotency of the request.

$sel:description:CreateFindingsFilter', createFindingsFilter_description - A custom description of the filter. The description can contain as many as 512 characters.

We strongly recommend that you avoid including any sensitive data in the description of a filter. Other users of your account might be able to see the filter's description, depending on the actions that they're allowed to perform in Amazon Macie.

$sel:tags:CreateFindingsFilter', createFindingsFilter_tags - A map of key-value pairs that specifies the tags to associate with the filter.

A findings filter can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

$sel:position:CreateFindingsFilter', createFindingsFilter_position - The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.

$sel:action:CreateFindingsFilter', createFindingsFilter_action - The action to perform on findings that meet the filter criteria (findingCriteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.

$sel:findingCriteria:CreateFindingsFilter', createFindingsFilter_findingCriteria - The criteria to use to filter findings.

$sel:name:CreateFindingsFilter', createFindingsFilter_name - A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters.

We strongly recommend that you avoid including any sensitive data in the name of a filter. Other users of your account might be able to see the filter's name, depending on the actions that they're allowed to perform in Amazon Macie.

Request Lenses

createFindingsFilter_clientToken :: Lens' CreateFindingsFilter (Maybe Text) Source #

A unique, case-sensitive token that you provide to ensure the idempotency of the request.

createFindingsFilter_description :: Lens' CreateFindingsFilter (Maybe Text) Source #

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

We strongly recommend that you avoid including any sensitive data in the description of a filter. Other users of your account might be able to see the filter's description, depending on the actions that they're allowed to perform in Amazon Macie.

createFindingsFilter_tags :: Lens' CreateFindingsFilter (Maybe (HashMap Text Text)) Source #

A map of key-value pairs that specifies the tags to associate with the filter.

A findings filter can have a maximum of 50 tags. Each tag consists of a tag key and an associated tag value. The maximum length of a tag key is 128 characters. The maximum length of a tag value is 256 characters.

createFindingsFilter_position :: Lens' CreateFindingsFilter (Maybe Int) Source #

The position of the filter in the list of saved filters on the Amazon Macie console. This value also determines the order in which the filter is applied to findings, relative to other filters that are also applied to the findings.

createFindingsFilter_action :: Lens' CreateFindingsFilter FindingsFilterAction Source #

The action to perform on findings that meet the filter criteria (findingCriteria). Valid values are: ARCHIVE, suppress (automatically archive) the findings; and, NOOP, don't perform any action on the findings.

createFindingsFilter_name :: Lens' CreateFindingsFilter Text Source #

A custom name for the filter. The name must contain at least 3 characters and can contain as many as 64 characters.

We strongly recommend that you avoid including any sensitive data in the name of a filter. Other users of your account might be able to see the filter's name, depending on the actions that they're allowed to perform in Amazon Macie.

Destructuring the Response

data CreateFindingsFilterResponse Source #

See: newCreateFindingsFilterResponse smart constructor.

Constructors

CreateFindingsFilterResponse' 

Fields

  • arn :: Maybe Text

    The Amazon Resource Name (ARN) of the filter that was created.

  • id :: Maybe Text

    The unique identifier for the filter that was created.

  • httpStatus :: Int

    The response's http status code.

Instances

Instances details
Eq CreateFindingsFilterResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Read CreateFindingsFilterResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Show CreateFindingsFilterResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Generic CreateFindingsFilterResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

Associated Types

type Rep CreateFindingsFilterResponse :: Type -> Type #

NFData CreateFindingsFilterResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

type Rep CreateFindingsFilterResponse Source # 
Instance details

Defined in Amazonka.MacieV2.CreateFindingsFilter

type Rep CreateFindingsFilterResponse = D1 ('MetaData "CreateFindingsFilterResponse" "Amazonka.MacieV2.CreateFindingsFilter" "libZSservicesZSamazonka-maciev2ZSamazonka-maciev2" 'False) (C1 ('MetaCons "CreateFindingsFilterResponse'" '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))))

newCreateFindingsFilterResponse Source #

Create a value of CreateFindingsFilterResponse 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:arn:CreateFindingsFilterResponse', createFindingsFilterResponse_arn - The Amazon Resource Name (ARN) of the filter that was created.

$sel:id:CreateFindingsFilterResponse', createFindingsFilterResponse_id - The unique identifier for the filter that was created.

$sel:httpStatus:CreateFindingsFilterResponse', createFindingsFilterResponse_httpStatus - The response's http status code.

Response Lenses

createFindingsFilterResponse_arn :: Lens' CreateFindingsFilterResponse (Maybe Text) Source #

The Amazon Resource Name (ARN) of the filter that was created.

createFindingsFilterResponse_id :: Lens' CreateFindingsFilterResponse (Maybe Text) Source #

The unique identifier for the filter that was created.