Skip to main content

detect_mitigation_actions_tasks

Creates, updates, deletes, gets or lists a detect_mitigation_actions_tasks resource.

Overview

Namedetect_mitigation_actions_tasks
TypeResource
Idaws.iot.detect_mitigation_actions_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
actions_definitionarrayThe definition of the actions.
only_active_violations_includedbooleanIncludes only active violations.
suppressed_alerts_includedbooleanIncludes suppressed alerts.
targetobjectSpecifies the ML Detect findings to which the mitigation actions are applied.
task_end_timestring (date-time)The date the task ended.
task_idstringThe unique identifier of the task. (pattern: <code>[a-zA-Z0-9_-]+</code>)
task_start_timestring (date-time)The date the task started.
task_statisticsobjectThe statistics of a mitigation action task.
task_statusstringThe status of the task. (IN_PROGRESS, SUCCESSFUL, FAILED, CANCELED)
violation_event_occurrence_rangeobjectSpecifies the time period of which violation events occurred between.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_detect_mitigation_actions_tasksselectstartTime, endTime, regionmaxResults, nextTokenList of Device Defender ML Detect mitigation actions tasks. Requires permission to access the ListDetectMitigationActionsTasks action.
describe_detect_mitigation_actions_taskselecttask_id, regionGets information about a Device Defender ML Detect mitigation action. Requires permission to access the DescribeDetectMitigationActionsTask action.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endTimestring (date-time)The end of the time period for which ML Detect mitigation actions tasks are returned.
regionstringAWS region (default: us-east-1)
startTimestring (date-time)A filter to limit results to those found after the specified time. You must specify either the startTime and endTime or the taskId, but not both.
task_idstringThe unique identifier of the task.
maxResultsintegerThe maximum number of results to return at one time. The default is 25.
nextTokenstringThe token for the next set of results.

SELECT examples

List of Device Defender ML Detect mitigation actions tasks. Requires permission to access the ListDetectMitigationActionsTasks action.

SELECT
actions_definition,
only_active_violations_included,
suppressed_alerts_included,
target,
task_end_time,
task_id,
task_start_time,
task_statistics,
task_status,
violation_event_occurrence_range
FROM aws.iot.detect_mitigation_actions_tasks
WHERE startTime = '{{ startTime }}' -- required
AND endTime = '{{ endTime }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;