Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
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_checkName :: Lens' ListAuditFindings (Maybe Text)
- listAuditFindings_endTime :: Lens' ListAuditFindings (Maybe UTCTime)
- listAuditFindings_listSuppressedFindings :: Lens' ListAuditFindings (Maybe Bool)
- listAuditFindings_maxResults :: Lens' ListAuditFindings (Maybe Natural)
- listAuditFindings_nextToken :: Lens' ListAuditFindings (Maybe Text)
- listAuditFindings_resourceIdentifier :: Lens' ListAuditFindings (Maybe ResourceIdentifier)
- listAuditFindings_startTime :: Lens' ListAuditFindings (Maybe UTCTime)
- listAuditFindings_taskId :: Lens' ListAuditFindings (Maybe Text)
- data ListAuditFindingsResponse = ListAuditFindingsResponse' {
- findings :: Maybe [AuditFinding]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListAuditFindingsResponse :: Int -> ListAuditFindingsResponse
- listAuditFindingsResponse_findings :: Lens' ListAuditFindingsResponse (Maybe [AuditFinding])
- listAuditFindingsResponse_nextToken :: Lens' ListAuditFindingsResponse (Maybe Text)
- 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:
ListAuditFindings
, listAuditFindings_checkName
- A filter to limit results to the findings for the specified audit check.
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: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:maxResults:ListAuditFindings'
, listAuditFindings_maxResults
- The maximum number of results to return at one time. The default is 25.
ListAuditFindings
, listAuditFindings_nextToken
- The token for the next set of results.
ListAuditFindings
, listAuditFindings_resourceIdentifier
- Information identifying the noncompliant resource.
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.
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.
Request Lenses
listAuditFindings_checkName :: Lens' ListAuditFindings (Maybe Text) Source #
A filter to limit results to the findings for the specified audit check.
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_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_maxResults :: Lens' ListAuditFindings (Maybe Natural) Source #
The maximum number of results to return at one time. The default is 25.
listAuditFindings_nextToken :: Lens' ListAuditFindings (Maybe Text) Source #
The token for the next set of results.
listAuditFindings_resourceIdentifier :: Lens' ListAuditFindings (Maybe ResourceIdentifier) Source #
Information identifying the noncompliant resource.
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.
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:findings:ListAuditFindingsResponse'
, listAuditFindingsResponse_findings
- The findings (results) of the audit.
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:httpStatus:ListAuditFindingsResponse'
, listAuditFindingsResponse_httpStatus
- The response's http status code.
Response Lenses
listAuditFindingsResponse_findings :: Lens' ListAuditFindingsResponse (Maybe [AuditFinding]) Source #
The findings (results) of the audit.
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_httpStatus :: Lens' ListAuditFindingsResponse Int Source #
The response's http status code.