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 |
Gets information about a Device Defender audit.
Requires permission to access the DescribeAuditTask action.
Synopsis
- data DescribeAuditTask = DescribeAuditTask' {}
- newDescribeAuditTask :: Text -> DescribeAuditTask
- describeAuditTask_taskId :: Lens' DescribeAuditTask Text
- data DescribeAuditTaskResponse = DescribeAuditTaskResponse' {}
- newDescribeAuditTaskResponse :: Int -> DescribeAuditTaskResponse
- describeAuditTaskResponse_auditDetails :: Lens' DescribeAuditTaskResponse (Maybe (HashMap Text AuditCheckDetails))
- describeAuditTaskResponse_taskType :: Lens' DescribeAuditTaskResponse (Maybe AuditTaskType)
- describeAuditTaskResponse_taskStartTime :: Lens' DescribeAuditTaskResponse (Maybe UTCTime)
- describeAuditTaskResponse_taskStatistics :: Lens' DescribeAuditTaskResponse (Maybe TaskStatistics)
- describeAuditTaskResponse_scheduledAuditName :: Lens' DescribeAuditTaskResponse (Maybe Text)
- describeAuditTaskResponse_taskStatus :: Lens' DescribeAuditTaskResponse (Maybe AuditTaskStatus)
- describeAuditTaskResponse_httpStatus :: Lens' DescribeAuditTaskResponse Int
Creating a Request
data DescribeAuditTask Source #
See: newDescribeAuditTask
smart constructor.
Instances
Create a value of DescribeAuditTask
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:taskId:DescribeAuditTask'
, describeAuditTask_taskId
- The ID of the audit whose information you want to get.
Request Lenses
describeAuditTask_taskId :: Lens' DescribeAuditTask Text Source #
The ID of the audit whose information you want to get.
Destructuring the Response
data DescribeAuditTaskResponse Source #
See: newDescribeAuditTaskResponse
smart constructor.
DescribeAuditTaskResponse' | |
|
Instances
newDescribeAuditTaskResponse Source #
Create a value of DescribeAuditTaskResponse
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:auditDetails:DescribeAuditTaskResponse'
, describeAuditTaskResponse_auditDetails
- Detailed information about each check performed during this audit.
$sel:taskType:DescribeAuditTaskResponse'
, describeAuditTaskResponse_taskType
- The type of audit: "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".
$sel:taskStartTime:DescribeAuditTaskResponse'
, describeAuditTaskResponse_taskStartTime
- The time the audit started.
$sel:taskStatistics:DescribeAuditTaskResponse'
, describeAuditTaskResponse_taskStatistics
- Statistical information about the audit.
$sel:scheduledAuditName:DescribeAuditTaskResponse'
, describeAuditTaskResponse_scheduledAuditName
- The name of the scheduled audit (only if the audit was a scheduled
audit).
$sel:taskStatus:DescribeAuditTaskResponse'
, describeAuditTaskResponse_taskStatus
- The status of the audit: one of "IN_PROGRESS", "COMPLETED",
"FAILED", or "CANCELED".
$sel:httpStatus:DescribeAuditTaskResponse'
, describeAuditTaskResponse_httpStatus
- The response's http status code.
Response Lenses
describeAuditTaskResponse_auditDetails :: Lens' DescribeAuditTaskResponse (Maybe (HashMap Text AuditCheckDetails)) Source #
Detailed information about each check performed during this audit.
describeAuditTaskResponse_taskType :: Lens' DescribeAuditTaskResponse (Maybe AuditTaskType) Source #
The type of audit: "ON_DEMAND_AUDIT_TASK" or "SCHEDULED_AUDIT_TASK".
describeAuditTaskResponse_taskStartTime :: Lens' DescribeAuditTaskResponse (Maybe UTCTime) Source #
The time the audit started.
describeAuditTaskResponse_taskStatistics :: Lens' DescribeAuditTaskResponse (Maybe TaskStatistics) Source #
Statistical information about the audit.
describeAuditTaskResponse_scheduledAuditName :: Lens' DescribeAuditTaskResponse (Maybe Text) Source #
The name of the scheduled audit (only if the audit was a scheduled audit).
describeAuditTaskResponse_taskStatus :: Lens' DescribeAuditTaskResponse (Maybe AuditTaskStatus) Source #
The status of the audit: one of "IN_PROGRESS", "COMPLETED", "FAILED", or "CANCELED".
describeAuditTaskResponse_httpStatus :: Lens' DescribeAuditTaskResponse Int Source #
The response's http status code.