libZSservicesZSamazonka-iotZSamazonka-iot
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.IoT.StartDetectMitigationActionsTask

Description

Starts a Device Defender ML Detect mitigation actions task.

Requires permission to access the StartDetectMitigationActionsTask action.

Synopsis

Creating a Request

data StartDetectMitigationActionsTask Source #

See: newStartDetectMitigationActionsTask smart constructor.

Constructors

StartDetectMitigationActionsTask' 

Fields

Instances

Instances details
Eq StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

Read StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

Show StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

Generic StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

Associated Types

type Rep StartDetectMitigationActionsTask :: Type -> Type #

NFData StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

Hashable StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

ToJSON StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

AWSRequest StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

ToHeaders StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

ToPath StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

ToQuery StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

type Rep StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

type Rep StartDetectMitigationActionsTask = D1 ('MetaData "StartDetectMitigationActionsTask" "Amazonka.IoT.StartDetectMitigationActionsTask" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "StartDetectMitigationActionsTask'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "violationEventOccurrenceRange") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ViolationEventOccurrenceRange)) :*: (S1 ('MetaSel ('Just "includeOnlyActiveViolations") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "includeSuppressedAlerts") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)))) :*: ((S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "target") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 DetectMitigationActionsTaskTarget)) :*: (S1 ('MetaSel ('Just "actions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (NonEmpty Text)) :*: S1 ('MetaSel ('Just "clientRequestToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse StartDetectMitigationActionsTask Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

newStartDetectMitigationActionsTask Source #

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_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 #

Constructors

StartDetectMitigationActionsTaskResponse' 

Fields

Instances

Instances details
Eq StartDetectMitigationActionsTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

Read StartDetectMitigationActionsTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

Show StartDetectMitigationActionsTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

Generic StartDetectMitigationActionsTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

NFData StartDetectMitigationActionsTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

type Rep StartDetectMitigationActionsTaskResponse Source # 
Instance details

Defined in Amazonka.IoT.StartDetectMitigationActionsTask

type Rep StartDetectMitigationActionsTaskResponse = D1 ('MetaData "StartDetectMitigationActionsTaskResponse" "Amazonka.IoT.StartDetectMitigationActionsTask" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "StartDetectMitigationActionsTaskResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "taskId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

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