libZSservicesZSamazonka-iotZSamazonka-iot
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.IoT.ListAuditFindings

Description

Lists the findings (results) of a Device Defender audit or of the audits performed during a specified time period. (Findings are retained for 90 days.)

Requires permission to access the ListAuditFindings action.

This operation returns paginated results.

Synopsis

Creating a Request

data ListAuditFindings Source #

See: newListAuditFindings smart constructor.

Constructors

ListAuditFindings' 

Fields

  • startTime :: Maybe POSIX

    A filter to limit results to those found after the specified time. You must specify either the startTime and endTime or the taskId, but not both.

  • taskId :: Maybe Text

    A filter to limit results to the audit with the specified ID. You must specify either the taskId or the startTime and endTime, but not both.

  • checkName :: Maybe Text

    A filter to limit results to the findings for the specified audit check.

  • listSuppressedFindings :: Maybe Bool

    Boolean flag indicating whether only the suppressed findings or the unsuppressed findings should be listed. If this parameter isn't provided, the response will list both suppressed and unsuppressed findings.

  • nextToken :: Maybe Text

    The token for the next set of results.

  • endTime :: Maybe POSIX

    A filter to limit results to those found before the specified time. You must specify either the startTime and endTime or the taskId, but not both.

  • maxResults :: Maybe Natural

    The maximum number of results to return at one time. The default is 25.

  • resourceIdentifier :: Maybe ResourceIdentifier

    Information identifying the noncompliant resource.

Instances

Instances details
Eq ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Read ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Show ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Generic ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Associated Types

type Rep ListAuditFindings :: Type -> Type #

NFData ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Methods

rnf :: ListAuditFindings -> () #

Hashable ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

ToJSON ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

AWSPager ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

AWSRequest ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Associated Types

type AWSResponse ListAuditFindings #

ToHeaders ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

ToPath ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

ToQuery ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

type Rep ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

type AWSResponse ListAuditFindings Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

newListAuditFindings :: ListAuditFindings Source #

Create a value of ListAuditFindings 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:startTime:ListAuditFindings', listAuditFindings_startTime - A filter to limit results to those found after the specified time. You must specify either the startTime and endTime or the taskId, but not both.

$sel:taskId:ListAuditFindings', listAuditFindings_taskId - A filter to limit results to the audit with the specified ID. You must specify either the taskId or the startTime and endTime, but not both.

$sel:checkName:ListAuditFindings', listAuditFindings_checkName - A filter to limit results to the findings for the specified audit check.

$sel:listSuppressedFindings:ListAuditFindings', listAuditFindings_listSuppressedFindings - Boolean flag indicating whether only the suppressed findings or the unsuppressed findings should be listed. If this parameter isn't provided, the response will list both suppressed and unsuppressed findings.

$sel:nextToken:ListAuditFindings', listAuditFindings_nextToken - The token for the next set of results.

$sel:endTime:ListAuditFindings', listAuditFindings_endTime - A filter to limit results to those found before the specified time. You must specify either the startTime and endTime or the taskId, but not both.

$sel:maxResults:ListAuditFindings', listAuditFindings_maxResults - The maximum number of results to return at one time. The default is 25.

$sel:resourceIdentifier:ListAuditFindings', listAuditFindings_resourceIdentifier - Information identifying the noncompliant resource.

Request Lenses

listAuditFindings_startTime :: Lens' ListAuditFindings (Maybe UTCTime) Source #

A filter to limit results to those found after the specified time. You must specify either the startTime and endTime or the taskId, but not both.

listAuditFindings_taskId :: Lens' ListAuditFindings (Maybe Text) Source #

A filter to limit results to the audit with the specified ID. You must specify either the taskId or the startTime and endTime, but not both.

listAuditFindings_checkName :: Lens' ListAuditFindings (Maybe Text) Source #

A filter to limit results to the findings for the specified audit check.

listAuditFindings_listSuppressedFindings :: Lens' ListAuditFindings (Maybe Bool) Source #

Boolean flag indicating whether only the suppressed findings or the unsuppressed findings should be listed. If this parameter isn't provided, the response will list both suppressed and unsuppressed findings.

listAuditFindings_nextToken :: Lens' ListAuditFindings (Maybe Text) Source #

The token for the next set of results.

listAuditFindings_endTime :: Lens' ListAuditFindings (Maybe UTCTime) Source #

A filter to limit results to those found before the specified time. You must specify either the startTime and endTime or the taskId, but not both.

listAuditFindings_maxResults :: Lens' ListAuditFindings (Maybe Natural) Source #

The maximum number of results to return at one time. The default is 25.

listAuditFindings_resourceIdentifier :: Lens' ListAuditFindings (Maybe ResourceIdentifier) Source #

Information identifying the noncompliant resource.

Destructuring the Response

data ListAuditFindingsResponse Source #

See: newListAuditFindingsResponse smart constructor.

Constructors

ListAuditFindingsResponse' 

Fields

Instances

Instances details
Eq ListAuditFindingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Read ListAuditFindingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Show ListAuditFindingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Generic ListAuditFindingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

Associated Types

type Rep ListAuditFindingsResponse :: Type -> Type #

NFData ListAuditFindingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

type Rep ListAuditFindingsResponse Source # 
Instance details

Defined in Amazonka.IoT.ListAuditFindings

type Rep ListAuditFindingsResponse = D1 ('MetaData "ListAuditFindingsResponse" "Amazonka.IoT.ListAuditFindings" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "ListAuditFindingsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "findings") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [AuditFinding])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newListAuditFindingsResponse Source #

Create a value of ListAuditFindingsResponse 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:ListAuditFindings', listAuditFindingsResponse_nextToken - A token that can be used to retrieve the next set of results, or null if there are no additional results.

$sel:findings:ListAuditFindingsResponse', listAuditFindingsResponse_findings - The findings (results) of the audit.

$sel:httpStatus:ListAuditFindingsResponse', listAuditFindingsResponse_httpStatus - The response's http status code.

Response Lenses

listAuditFindingsResponse_nextToken :: Lens' ListAuditFindingsResponse (Maybe Text) Source #

A token that can be used to retrieve the next set of results, or null if there are no additional results.