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 |
Starts an on-demand Device Defender audit.
Requires permission to access the StartOnDemandAuditTask action.
Synopsis
- data StartOnDemandAuditTask = StartOnDemandAuditTask' {
- targetCheckNames :: [Text]
- newStartOnDemandAuditTask :: StartOnDemandAuditTask
- startOnDemandAuditTask_targetCheckNames :: Lens' StartOnDemandAuditTask [Text]
- data StartOnDemandAuditTaskResponse = StartOnDemandAuditTaskResponse' {
- taskId :: Maybe Text
- httpStatus :: Int
- newStartOnDemandAuditTaskResponse :: Int -> StartOnDemandAuditTaskResponse
- startOnDemandAuditTaskResponse_taskId :: Lens' StartOnDemandAuditTaskResponse (Maybe Text)
- startOnDemandAuditTaskResponse_httpStatus :: Lens' StartOnDemandAuditTaskResponse Int
Creating a Request
data StartOnDemandAuditTask Source #
See: newStartOnDemandAuditTask
smart constructor.
StartOnDemandAuditTask' | |
|
Instances
newStartOnDemandAuditTask :: StartOnDemandAuditTask Source #
Create a value of StartOnDemandAuditTask
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:targetCheckNames:StartOnDemandAuditTask'
, startOnDemandAuditTask_targetCheckNames
- Which checks are performed during the audit. The checks you specify must
be enabled for your account or an exception occurs. Use
DescribeAccountAuditConfiguration
to see the list of all checks,
including those that are enabled or UpdateAccountAuditConfiguration
to
select which checks are enabled.
Request Lenses
startOnDemandAuditTask_targetCheckNames :: Lens' StartOnDemandAuditTask [Text] Source #
Which checks are performed during the audit. The checks you specify must
be enabled for your account or an exception occurs. Use
DescribeAccountAuditConfiguration
to see the list of all checks,
including those that are enabled or UpdateAccountAuditConfiguration
to
select which checks are enabled.
Destructuring the Response
data StartOnDemandAuditTaskResponse Source #
See: newStartOnDemandAuditTaskResponse
smart constructor.
StartOnDemandAuditTaskResponse' | |
|
Instances
Eq StartOnDemandAuditTaskResponse Source # | |
Read StartOnDemandAuditTaskResponse Source # | |
Show StartOnDemandAuditTaskResponse Source # | |
Defined in Amazonka.IoT.StartOnDemandAuditTask | |
Generic StartOnDemandAuditTaskResponse Source # | |
NFData StartOnDemandAuditTaskResponse Source # | |
Defined in Amazonka.IoT.StartOnDemandAuditTask rnf :: StartOnDemandAuditTaskResponse -> () # | |
type Rep StartOnDemandAuditTaskResponse Source # | |
Defined in Amazonka.IoT.StartOnDemandAuditTask type Rep StartOnDemandAuditTaskResponse = D1 ('MetaData "StartOnDemandAuditTaskResponse" "Amazonka.IoT.StartOnDemandAuditTask" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "StartOnDemandAuditTaskResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))) |
newStartOnDemandAuditTaskResponse Source #
Create a value of StartOnDemandAuditTaskResponse
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:StartOnDemandAuditTaskResponse'
, startOnDemandAuditTaskResponse_taskId
- The ID of the on-demand audit you started.
$sel:httpStatus:StartOnDemandAuditTaskResponse'
, startOnDemandAuditTaskResponse_httpStatus
- The response's http status code.
Response Lenses
startOnDemandAuditTaskResponse_taskId :: Lens' StartOnDemandAuditTaskResponse (Maybe Text) Source #
The ID of the on-demand audit you started.
startOnDemandAuditTaskResponse_httpStatus :: Lens' StartOnDemandAuditTaskResponse Int Source #
The response's http status code.