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

Description

Lists findings for your environment.

This operation returns paginated results.

Synopsis

Creating a Request

data ListFindings Source #

See: newListFindings smart constructor.

Constructors

ListFindings' 

Fields

  • filterCriteria :: Maybe FilterCriteria

    Details on the filters to apply to your finding results.

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

  • sortCriteria :: Maybe SortCriteria

    Details on the sort criteria to apply to your finding results.

Instances

Instances details
ToJSON ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

ToHeaders ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

ToPath ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

ToQuery ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

AWSPager ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

AWSRequest ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

Associated Types

type AWSResponse ListFindings #

Generic ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

Associated Types

type Rep ListFindings :: Type -> Type #

Read ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

Show ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

NFData ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

Methods

rnf :: ListFindings -> () #

Eq ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

Hashable ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

type AWSResponse ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

type Rep ListFindings Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

type Rep ListFindings = D1 ('MetaData "ListFindings" "Amazonka.Inspector2.ListFindings" "amazonka-inspector2-2.0-EI0CfxGdACSBWwvVde8cFy" 'False) (C1 ('MetaCons "ListFindings'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filterCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe FilterCriteria)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "sortCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe SortCriteria)))))

newListFindings :: ListFindings Source #

Create a value of ListFindings 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:filterCriteria:ListFindings', listFindings_filterCriteria - Details on the filters to apply to your finding results.

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

ListFindings, listFindings_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:sortCriteria:ListFindings', listFindings_sortCriteria - Details on the sort criteria to apply to your finding results.

Request Lenses

listFindings_filterCriteria :: Lens' ListFindings (Maybe FilterCriteria) Source #

Details on the filters to apply to your finding results.

listFindings_maxResults :: Lens' ListFindings (Maybe Natural) Source #

The maximum number of results to return in the response.

listFindings_nextToken :: Lens' ListFindings (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.

listFindings_sortCriteria :: Lens' ListFindings (Maybe SortCriteria) Source #

Details on the sort criteria to apply to your finding results.

Destructuring the Response

data ListFindingsResponse Source #

See: newListFindingsResponse smart constructor.

Constructors

ListFindingsResponse' 

Fields

  • findings :: Maybe [Finding]

    Contains details on the findings in your environment.

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

Instances

Instances details
Generic ListFindingsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

Associated Types

type Rep ListFindingsResponse :: Type -> Type #

Read ListFindingsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

Show ListFindingsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

NFData ListFindingsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

Methods

rnf :: ListFindingsResponse -> () #

Eq ListFindingsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

type Rep ListFindingsResponse Source # 
Instance details

Defined in Amazonka.Inspector2.ListFindings

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

newListFindingsResponse Source #

Create a value of ListFindingsResponse 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:findings:ListFindingsResponse', listFindingsResponse_findings - Contains details on the findings in your environment.

ListFindings, listFindingsResponse_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:ListFindingsResponse', listFindingsResponse_httpStatus - The response's http status code.

Response Lenses

listFindingsResponse_findings :: Lens' ListFindingsResponse (Maybe [Finding]) Source #

Contains details on the findings in your environment.

listFindingsResponse_nextToken :: Lens' ListFindingsResponse (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.