Skip to main content

audit_mitigation_actions_executions

Creates, updates, deletes, gets or lists an audit_mitigation_actions_executions resource.

Overview​

Nameaudit_mitigation_actions_executions
TypeResource
Idaws.iot.audit_mitigation_actions_executions

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
action_idstringThe unique identifier for the mitigation action being applied by the task.
action_namestringThe friendly name of the mitigation action being applied by the task. (pattern: <code>[a-zA-Z0-9_-]+</code>)
end_timestring (date-time)The date and time when the task was completed or canceled. Blank if the task is still running.
error_codestringIf an error occurred, the code that indicates which type of error occurred.
finding_idstringThe unique identifier for the findings to which the task and associated mitigation action are applied. (pattern: <code>[a-zA-Z0-9_-]+</code>)
messagestringIf an error occurred, a message that describes the error.
start_timestring (date-time)The date and time when the task was started.
statusstringThe current status of the task being executed. (IN_PROGRESS, COMPLETED, FAILED, CANCELED, SKIPPED, PENDING)
task_idstringThe unique identifier for the task that applies the mitigation action. (pattern: <code>[a-zA-Z0-9_-]+</code>)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_audit_mitigation_actions_executionsselecttaskId, findingId, regionactionStatus, maxResults, nextTokenGets the status of audit mitigation action tasks that were executed. Requires permission to access the ListAuditMitigationActionsExecutions 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
findingIdstringSpecify this filter to limit results to those that were applied to a specific audit finding.
regionstringAWS region (default: us-east-1)
taskIdstringSpecify this filter to limit results to actions for a specific audit mitigation actions task.
actionStatusstringSpecify this filter to limit results to those with a specific status.
maxResultsintegerThe maximum number of results to return at one time. The default is 25.
nextTokenstringThe token for the next set of results.

SELECT examples​

Gets the status of audit mitigation action tasks that were executed. Requires permission to access the ListAuditMitigationActionsExecutions action.

SELECT
action_id,
action_name,
end_time,
error_code,
finding_id,
message,
start_time,
status,
task_id
FROM aws.iot.audit_mitigation_actions_executions
WHERE taskId = '{{ taskId }}' -- required
AND findingId = '{{ findingId }}' -- required
AND region = '{{ region }}' -- required
AND actionStatus = '{{ actionStatus }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;