libZSservicesZSamazonka-securityhubZSamazonka-securityhub
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.SecurityHub.GetFindings

Description

Returns a list of findings that match the specified criteria.

If finding aggregation is enabled, then when you call GetFindings from the aggregation Region, the results include all of the matching findings from both the aggregation Region and the linked Regions.

This operation returns paginated results.

Synopsis

Creating a Request

data GetFindings Source #

See: newGetFindings smart constructor.

Constructors

GetFindings' 

Fields

  • filters :: Maybe AwsSecurityFindingFilters

    The finding attributes used to define a condition to filter the returned findings.

    You can filter by up to 10 finding attributes. For each attribute, you can provide up to 20 filter values.

    Note that in the available filter fields, WorkflowState is deprecated. To search for a finding based on its workflow status, use WorkflowStatus.

  • sortCriteria :: Maybe [SortCriterion]

    The finding attributes used to sort the list of returned findings.

  • nextToken :: Maybe Text

    The token that is required for pagination. On your first call to the GetFindings operation, set the value of this parameter to NULL.

    For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

  • maxResults :: Maybe Natural

    The maximum number of findings to return.

Instances

Instances details
Eq GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Read GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Show GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Generic GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Associated Types

type Rep GetFindings :: Type -> Type #

NFData GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Methods

rnf :: GetFindings -> () #

Hashable GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

ToJSON GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

AWSPager GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

AWSRequest GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Associated Types

type AWSResponse GetFindings #

ToHeaders GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Methods

toHeaders :: GetFindings -> [Header] #

ToPath GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

ToQuery GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

type Rep GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

type Rep GetFindings = D1 ('MetaData "GetFindings" "Amazonka.SecurityHub.GetFindings" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "GetFindings'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "filters") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AwsSecurityFindingFilters)) :*: S1 ('MetaSel ('Just "sortCriteria") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [SortCriterion]))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "maxResults") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)))))
type AWSResponse GetFindings Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

newGetFindings :: GetFindings Source #

Create a value of GetFindings 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:filters:GetFindings', getFindings_filters - The finding attributes used to define a condition to filter the returned findings.

You can filter by up to 10 finding attributes. For each attribute, you can provide up to 20 filter values.

Note that in the available filter fields, WorkflowState is deprecated. To search for a finding based on its workflow status, use WorkflowStatus.

$sel:sortCriteria:GetFindings', getFindings_sortCriteria - The finding attributes used to sort the list of returned findings.

$sel:nextToken:GetFindings', getFindings_nextToken - The token that is required for pagination. On your first call to the GetFindings operation, set the value of this parameter to NULL.

For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

$sel:maxResults:GetFindings', getFindings_maxResults - The maximum number of findings to return.

Request Lenses

getFindings_filters :: Lens' GetFindings (Maybe AwsSecurityFindingFilters) Source #

The finding attributes used to define a condition to filter the returned findings.

You can filter by up to 10 finding attributes. For each attribute, you can provide up to 20 filter values.

Note that in the available filter fields, WorkflowState is deprecated. To search for a finding based on its workflow status, use WorkflowStatus.

getFindings_sortCriteria :: Lens' GetFindings (Maybe [SortCriterion]) Source #

The finding attributes used to sort the list of returned findings.

getFindings_nextToken :: Lens' GetFindings (Maybe Text) Source #

The token that is required for pagination. On your first call to the GetFindings operation, set the value of this parameter to NULL.

For subsequent calls to the operation, to continue listing data, set the value of this parameter to the value returned from the previous response.

getFindings_maxResults :: Lens' GetFindings (Maybe Natural) Source #

The maximum number of findings to return.

Destructuring the Response

data GetFindingsResponse Source #

See: newGetFindingsResponse smart constructor.

Constructors

GetFindingsResponse' 

Fields

Instances

Instances details
Eq GetFindingsResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Read GetFindingsResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Show GetFindingsResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Generic GetFindingsResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Associated Types

type Rep GetFindingsResponse :: Type -> Type #

NFData GetFindingsResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

Methods

rnf :: GetFindingsResponse -> () #

type Rep GetFindingsResponse Source # 
Instance details

Defined in Amazonka.SecurityHub.GetFindings

type Rep GetFindingsResponse = D1 ('MetaData "GetFindingsResponse" "Amazonka.SecurityHub.GetFindings" "libZSservicesZSamazonka-securityhubZSamazonka-securityhub" 'False) (C1 ('MetaCons "GetFindingsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "findings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 [AwsSecurityFinding]))))

newGetFindingsResponse Source #

Create a value of GetFindingsResponse 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:nextToken:GetFindings', getFindingsResponse_nextToken - The pagination token to use to request the next page of results.

$sel:httpStatus:GetFindingsResponse', getFindingsResponse_httpStatus - The response's http status code.

$sel:findings:GetFindingsResponse', getFindingsResponse_findings - The findings that matched the filters specified in the request.

Response Lenses

getFindingsResponse_nextToken :: Lens' GetFindingsResponse (Maybe Text) Source #

The pagination token to use to request the next page of results.

getFindingsResponse_findings :: Lens' GetFindingsResponse [AwsSecurityFinding] Source #

The findings that matched the filters specified in the request.