Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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
- data ListAuditFindings = ListAuditFindings' {}
- newListAuditFindings :: ListAuditFindings
- listAuditFindings_startTime :: Lens' ListAuditFindings (Maybe UTCTime)
- listAuditFindings_taskId :: Lens' ListAuditFindings (Maybe Text)
- listAuditFindings_checkName :: Lens' ListAuditFindings (Maybe Text)
- listAuditFindings_listSuppressedFindings :: Lens' ListAuditFindings (Maybe Bool)
- listAuditFindings_nextToken :: Lens' ListAuditFindings (Maybe Text)
- listAuditFindings_endTime :: Lens' ListAuditFindings (Maybe UTCTime)
- listAuditFindings_maxResults :: Lens' ListAuditFindings (Maybe Natural)
- listAuditFindings_resourceIdentifier :: Lens' ListAuditFindings (Maybe ResourceIdentifier)
- data ListAuditFindingsResponse = ListAuditFindingsResponse' {
- nextToken :: Maybe Text
- findings :: Maybe [AuditFinding]
- httpStatus :: Int
- newListAuditFindingsResponse :: Int -> ListAuditFindingsResponse
- listAuditFindingsResponse_nextToken :: Lens' ListAuditFindingsResponse (Maybe Text)
- listAuditFindingsResponse_findings :: Lens' ListAuditFindingsResponse (Maybe [AuditFinding])
- listAuditFindingsResponse_httpStatus :: Lens' ListAuditFindingsResponse Int
Creating a Request
data ListAuditFindings Source #
See: newListAuditFindings
smart constructor.
ListAuditFindings' | |
|
Instances
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.
ListAuditFindingsResponse' | |
|
Instances
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.
listAuditFindingsResponse_findings :: Lens' ListAuditFindingsResponse (Maybe [AuditFinding]) Source #
The findings (results) of the audit.
listAuditFindingsResponse_httpStatus :: Lens' ListAuditFindingsResponse Int Source #
The response's http status code.