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 Device Defender audits that have been performed during a given time period.
Requires permission to access the ListAuditTasks action.
This operation returns paginated results.
Synopsis
- data ListAuditTasks = ListAuditTasks' {}
- newListAuditTasks :: UTCTime -> UTCTime -> ListAuditTasks
- listAuditTasks_taskType :: Lens' ListAuditTasks (Maybe AuditTaskType)
- listAuditTasks_nextToken :: Lens' ListAuditTasks (Maybe Text)
- listAuditTasks_maxResults :: Lens' ListAuditTasks (Maybe Natural)
- listAuditTasks_taskStatus :: Lens' ListAuditTasks (Maybe AuditTaskStatus)
- listAuditTasks_startTime :: Lens' ListAuditTasks UTCTime
- listAuditTasks_endTime :: Lens' ListAuditTasks UTCTime
- data ListAuditTasksResponse = ListAuditTasksResponse' {
- tasks :: Maybe [AuditTaskMetadata]
- nextToken :: Maybe Text
- httpStatus :: Int
- newListAuditTasksResponse :: Int -> ListAuditTasksResponse
- listAuditTasksResponse_tasks :: Lens' ListAuditTasksResponse (Maybe [AuditTaskMetadata])
- listAuditTasksResponse_nextToken :: Lens' ListAuditTasksResponse (Maybe Text)
- listAuditTasksResponse_httpStatus :: Lens' ListAuditTasksResponse Int
Creating a Request
data ListAuditTasks Source #
See: newListAuditTasks
smart constructor.
ListAuditTasks' | |
|
Instances
Create a value of ListAuditTasks
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:taskType:ListAuditTasks'
, listAuditTasks_taskType
- A filter to limit the output to the specified type of audit: can be one
of "ON_DEMAND_AUDIT_TASK" or "SCHEDULED__AUDIT_TASK".
$sel:nextToken:ListAuditTasks'
, listAuditTasks_nextToken
- The token for the next set of results.
$sel:maxResults:ListAuditTasks'
, listAuditTasks_maxResults
- The maximum number of results to return at one time. The default is 25.
$sel:taskStatus:ListAuditTasks'
, listAuditTasks_taskStatus
- A filter to limit the output to audits with the specified completion
status: can be one of "IN_PROGRESS", "COMPLETED", "FAILED", or
"CANCELED".
$sel:startTime:ListAuditTasks'
, listAuditTasks_startTime
- The beginning of the time period. Audit information is retained for a
limited time (90 days). Requesting a start time prior to what is
retained results in an "InvalidRequestException".
$sel:endTime:ListAuditTasks'
, listAuditTasks_endTime
- The end of the time period.
Request Lenses
listAuditTasks_taskType :: Lens' ListAuditTasks (Maybe AuditTaskType) Source #
A filter to limit the output to the specified type of audit: can be one of "ON_DEMAND_AUDIT_TASK" or "SCHEDULED__AUDIT_TASK".
listAuditTasks_nextToken :: Lens' ListAuditTasks (Maybe Text) Source #
The token for the next set of results.
listAuditTasks_maxResults :: Lens' ListAuditTasks (Maybe Natural) Source #
The maximum number of results to return at one time. The default is 25.
listAuditTasks_taskStatus :: Lens' ListAuditTasks (Maybe AuditTaskStatus) Source #
A filter to limit the output to audits with the specified completion status: can be one of "IN_PROGRESS", "COMPLETED", "FAILED", or "CANCELED".
listAuditTasks_startTime :: Lens' ListAuditTasks UTCTime Source #
The beginning of the time period. Audit information is retained for a limited time (90 days). Requesting a start time prior to what is retained results in an "InvalidRequestException".
listAuditTasks_endTime :: Lens' ListAuditTasks UTCTime Source #
The end of the time period.
Destructuring the Response
data ListAuditTasksResponse Source #
See: newListAuditTasksResponse
smart constructor.
ListAuditTasksResponse' | |
|
Instances
newListAuditTasksResponse Source #
Create a value of ListAuditTasksResponse
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:tasks:ListAuditTasksResponse'
, listAuditTasksResponse_tasks
- The audits that were performed during the specified time period.
$sel:nextToken:ListAuditTasks'
, listAuditTasksResponse_nextToken
- A token that can be used to retrieve the next set of results, or null
if there are no additional results.
$sel:httpStatus:ListAuditTasksResponse'
, listAuditTasksResponse_httpStatus
- The response's http status code.
Response Lenses
listAuditTasksResponse_tasks :: Lens' ListAuditTasksResponse (Maybe [AuditTaskMetadata]) Source #
The audits that were performed during the specified time period.
listAuditTasksResponse_nextToken :: Lens' ListAuditTasksResponse (Maybe Text) Source #
A token that can be used to retrieve the next set of results, or null
if there are no additional results.
listAuditTasksResponse_httpStatus :: Lens' ListAuditTasksResponse Int Source #
The response's http status code.