Skip to main content

detect_mitigation_actions_executions

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

Overview

Namedetect_mitigation_actions_executions
TypeResource
Idaws.iot.detect_mitigation_actions_executions

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
action_namestringThe friendly name that uniquely identifies the mitigation action. (pattern: <code>[a-zA-Z0-9_-]+</code>)
error_codestringThe error code of a mitigation action.
execution_end_datestring (date-time)The date a mitigation action ended.
execution_start_datestring (date-time)The date a mitigation action was started.
messagestringThe message of a mitigation action.
statusstringThe status of a mitigation action. (IN_PROGRESS, SUCCESSFUL, FAILED, SKIPPED)
task_idstringThe unique identifier of the task. (pattern: <code>[a-zA-Z0-9_-]+</code>)
thing_namestringThe name of the thing.
violation_idstringThe unique identifier of the violation. (pattern: <code>[a-zA-Z0-9-]+</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_detect_mitigation_actions_executionsselectregiontaskId, violationId, thingName, startTime, endTime, maxResults, nextTokenLists mitigation actions executions for a Device Defender ML Detect Security Profile. Requires permission to access the ListDetectMitigationActionsExecutions 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
regionstringAWS region (default: us-east-1)
endTimestring (date-time)The end of the time period for which ML Detect mitigation actions executions are returned.
maxResultsintegerThe maximum number of results to return at one time. The default is 25.
nextTokenstringThe token for the next set of results.
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.
taskIdstringThe unique identifier of the task.
thingNamestringThe name of the thing whose mitigation actions are listed.
violationIdstringThe unique identifier of the violation.

SELECT examples

Lists mitigation actions executions for a Device Defender ML Detect Security Profile. Requires permission to access the ListDetectMitigationActionsExecutions action.

SELECT
action_name,
error_code,
execution_end_date,
execution_start_date,
message,
status,
task_id,
thing_name,
violation_id
FROM aws.iot.detect_mitigation_actions_executions
WHERE region = '{{ region }}' -- required
AND taskId = '{{ taskId }}'
AND violationId = '{{ violationId }}'
AND thingName = '{{ thingName }}'
AND startTime = '{{ startTime }}'
AND endTime = '{{ endTime }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;