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 a Device Defender ML Detect mitigation actions task.
Requires permission to access the StartDetectMitigationActionsTask action.
Synopsis
- data StartDetectMitigationActionsTask = StartDetectMitigationActionsTask' {}
- newStartDetectMitigationActionsTask :: Text -> DetectMitigationActionsTaskTarget -> NonEmpty Text -> Text -> StartDetectMitigationActionsTask
- startDetectMitigationActionsTask_violationEventOccurrenceRange :: Lens' StartDetectMitigationActionsTask (Maybe ViolationEventOccurrenceRange)
- startDetectMitigationActionsTask_includeOnlyActiveViolations :: Lens' StartDetectMitigationActionsTask (Maybe Bool)
- startDetectMitigationActionsTask_includeSuppressedAlerts :: Lens' StartDetectMitigationActionsTask (Maybe Bool)
- startDetectMitigationActionsTask_taskId :: Lens' StartDetectMitigationActionsTask Text
- startDetectMitigationActionsTask_target :: Lens' StartDetectMitigationActionsTask DetectMitigationActionsTaskTarget
- startDetectMitigationActionsTask_actions :: Lens' StartDetectMitigationActionsTask (NonEmpty Text)
- startDetectMitigationActionsTask_clientRequestToken :: Lens' StartDetectMitigationActionsTask Text
- data StartDetectMitigationActionsTaskResponse = StartDetectMitigationActionsTaskResponse' {
- taskId :: Maybe Text
- httpStatus :: Int
- newStartDetectMitigationActionsTaskResponse :: Int -> StartDetectMitigationActionsTaskResponse
- startDetectMitigationActionsTaskResponse_taskId :: Lens' StartDetectMitigationActionsTaskResponse (Maybe Text)
- startDetectMitigationActionsTaskResponse_httpStatus :: Lens' StartDetectMitigationActionsTaskResponse Int
Creating a Request
data StartDetectMitigationActionsTask Source #
See: newStartDetectMitigationActionsTask
smart constructor.
StartDetectMitigationActionsTask' | |
|
Instances
newStartDetectMitigationActionsTask Source #
:: Text | |
-> DetectMitigationActionsTaskTarget | |
-> NonEmpty Text | |
-> Text | |
-> StartDetectMitigationActionsTask |
Create a value of StartDetectMitigationActionsTask
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:violationEventOccurrenceRange:StartDetectMitigationActionsTask'
, startDetectMitigationActionsTask_violationEventOccurrenceRange
- Specifies the time period of which violation events occurred between.
$sel:includeOnlyActiveViolations:StartDetectMitigationActionsTask'
, startDetectMitigationActionsTask_includeOnlyActiveViolations
- Specifies to list only active violations.
$sel:includeSuppressedAlerts:StartDetectMitigationActionsTask'
, startDetectMitigationActionsTask_includeSuppressedAlerts
- Specifies to include suppressed alerts.
$sel:taskId:StartDetectMitigationActionsTask'
, startDetectMitigationActionsTask_taskId
- The unique identifier of the task.
$sel:target:StartDetectMitigationActionsTask'
, startDetectMitigationActionsTask_target
- Specifies the ML Detect findings to which the mitigation actions are
applied.
$sel:actions:StartDetectMitigationActionsTask'
, startDetectMitigationActionsTask_actions
- The actions to be performed when a device has unexpected behavior.
$sel:clientRequestToken:StartDetectMitigationActionsTask'
, startDetectMitigationActionsTask_clientRequestToken
- Each mitigation action task must have a unique client request token. If
you try to create a new task with the same token as a task that already
exists, an exception occurs. If you omit this value, Amazon Web Services
SDKs will automatically generate a unique client request.
Request Lenses
startDetectMitigationActionsTask_violationEventOccurrenceRange :: Lens' StartDetectMitigationActionsTask (Maybe ViolationEventOccurrenceRange) Source #
Specifies the time period of which violation events occurred between.
startDetectMitigationActionsTask_includeOnlyActiveViolations :: Lens' StartDetectMitigationActionsTask (Maybe Bool) Source #
Specifies to list only active violations.
startDetectMitigationActionsTask_includeSuppressedAlerts :: Lens' StartDetectMitigationActionsTask (Maybe Bool) Source #
Specifies to include suppressed alerts.
startDetectMitigationActionsTask_taskId :: Lens' StartDetectMitigationActionsTask Text Source #
The unique identifier of the task.
startDetectMitigationActionsTask_target :: Lens' StartDetectMitigationActionsTask DetectMitigationActionsTaskTarget Source #
Specifies the ML Detect findings to which the mitigation actions are applied.
startDetectMitigationActionsTask_actions :: Lens' StartDetectMitigationActionsTask (NonEmpty Text) Source #
The actions to be performed when a device has unexpected behavior.
startDetectMitigationActionsTask_clientRequestToken :: Lens' StartDetectMitigationActionsTask Text Source #
Each mitigation action task must have a unique client request token. If you try to create a new task with the same token as a task that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request.
Destructuring the Response
data StartDetectMitigationActionsTaskResponse Source #
See: newStartDetectMitigationActionsTaskResponse
smart constructor.
StartDetectMitigationActionsTaskResponse' | |
|
Instances
newStartDetectMitigationActionsTaskResponse Source #
Create a value of StartDetectMitigationActionsTaskResponse
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:StartDetectMitigationActionsTask'
, startDetectMitigationActionsTaskResponse_taskId
- The unique identifier of the task.
$sel:httpStatus:StartDetectMitigationActionsTaskResponse'
, startDetectMitigationActionsTaskResponse_httpStatus
- The response's http status code.
Response Lenses
startDetectMitigationActionsTaskResponse_taskId :: Lens' StartDetectMitigationActionsTaskResponse (Maybe Text) Source #
The unique identifier of the task.
startDetectMitigationActionsTaskResponse_httpStatus :: Lens' StartDetectMitigationActionsTaskResponse Int Source #
The response's http status code.