amazonka-inspector2-2.0: Amazon Inspector2 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.Inspector2.ListFilters

Description

Lists the filters associated with your account.

This operation returns paginated results.

Synopsis

Creating a Request

data ListFilters Source #

See: newListFilters smart constructor.

Constructors

ListFilters' 

Fields

  • action :: Maybe FilterAction

    The action the filter applies to matched findings.

  • arns :: Maybe [Text]

    The Amazon resource number (ARN) of the filter.

  • maxResults :: Maybe Natural

    The maximum number of results to return in the response.

  • nextToken :: Maybe Text

    A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

Instances

Instances details
ToJSON ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

ToHeaders ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Methods

toHeaders :: ListFilters -> [Header] #

ToPath ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

ToQuery ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

AWSPager ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

AWSRequest ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Associated Types

type AWSResponse ListFilters #

Generic ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Associated Types

type Rep ListFilters :: Type -> Type #

Read ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Show ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

NFData ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Methods

rnf :: ListFilters -> () #

Eq ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Hashable ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

type AWSResponse ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

type Rep ListFilters Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

type Rep ListFilters = D1 ('MetaData "ListFilters" "Amazonka.Inspector2.ListFilters" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "ListFilters'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "action") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FilterAction)) :*: S1 ('MetaSel ('Just "arns") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text]))) :*: (S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newListFilters :: ListFilters Source #

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

ListFilters, listFilters_action - The action the filter applies to matched findings.

$sel:arns:ListFilters', listFilters_arns - The Amazon resource number (ARN) of the filter.

$sel:maxResults:ListFilters', listFilters_maxResults - The maximum number of results to return in the response.

ListFilters, listFilters_nextToken - A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

Request Lenses

listFilters_action :: Lens' ListFilters (Maybe FilterAction) Source #

The action the filter applies to matched findings.

listFilters_arns :: Lens' ListFilters (Maybe [Text]) Source #

The Amazon resource number (ARN) of the filter.

listFilters_maxResults :: Lens' ListFilters (Maybe Natural) Source #

The maximum number of results to return in the response.

listFilters_nextToken :: Lens' ListFilters (Maybe Text) Source #

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

Destructuring the Response

data ListFiltersResponse Source #

See: newListFiltersResponse smart constructor.

Constructors

ListFiltersResponse' 

Fields

  • nextToken :: Maybe Text

    A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

  • httpStatus :: Int

    The response's http status code.

  • filters :: [Filter]

    Contains details on the filters associated with your account.

Instances

Instances details
Generic ListFiltersResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Associated Types

type Rep ListFiltersResponse :: Type -> Type #

Read ListFiltersResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Show ListFiltersResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

NFData ListFiltersResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

Methods

rnf :: ListFiltersResponse -> () #

Eq ListFiltersResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

type Rep ListFiltersResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFilters

type Rep ListFiltersResponse = D1 ('MetaData "ListFiltersResponse" "Amazonka.Inspector2.ListFilters" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "ListFiltersResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [Filter]))))

newListFiltersResponse Source #

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

ListFilters, listFiltersResponse_nextToken - A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

$sel:httpStatus:ListFiltersResponse', listFiltersResponse_httpStatus - The response's http status code.

$sel:filters:ListFiltersResponse', listFiltersResponse_filters - Contains details on the filters associated with your account.

Response Lenses

listFiltersResponse_nextToken :: Lens' ListFiltersResponse (Maybe Text) Source #

A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request to a list action. For subsequent calls, use the NextToken value returned from the previous request to continue listing results after the first page.

listFiltersResponse_filters :: Lens' ListFiltersResponse [Filter] Source #

Contains details on the filters associated with your account.