Skip to main content

audit_mitigation_actions_tasks

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

Overview

Nameaudit_mitigation_actions_tasks
TypeResource
Idaws.iot.audit_mitigation_actions_tasks

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
start_timestring (date-time)The time at which the audit mitigation actions task was started.
task_idstringThe unique identifier for the task. (pattern: <code>[a-zA-Z0-9_-]+</code>)
task_statusstringThe current state of the audit mitigation actions task. (IN_PROGRESS, COMPLETED, FAILED, CANCELED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_audit_mitigation_actions_tasksselectstartTime, endTime, regionauditTaskId, findingId, taskStatus, maxResults, nextTokenGets a list of audit mitigation action tasks that match the specified filters. Requires permission to access the ListAuditMitigationActionsTasks action.
describe_audit_mitigation_actions_taskselecttask_id, regionGets information about an audit mitigation task that is used to apply mitigation actions to a set of audit findings. Properties include the actions being applied, the audit checks to which they're being applied, the task status, and aggregated task statistics.

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)Specify this filter to limit results to tasks that were completed or canceled on or before a specific date and time.
regionstringAWS region (default: us-east-1)
startTimestring (date-time)Specify this filter to limit results to tasks that began on or after a specific date and time.
task_idstringThe unique identifier for the audit mitigation task.
auditTaskIdstringSpecify this filter to limit results to tasks that were applied to results for a specific audit.
findingIdstringSpecify this filter to limit results to tasks that were applied to a specific audit finding.
maxResultsintegerThe maximum number of results to return at one time. The default is 25.
nextTokenstringThe token for the next set of results.
taskStatusstringSpecify this filter to limit results to tasks that are in a specific state.

SELECT examples

Gets a list of audit mitigation action tasks that match the specified filters. Requires permission to access the ListAuditMitigationActionsTasks action.

SELECT
start_time,
task_id,
task_status
FROM aws.iot.audit_mitigation_actions_tasks
WHERE startTime = '{{ startTime }}' -- required
AND endTime = '{{ endTime }}' -- required
AND region = '{{ region }}' -- required
AND auditTaskId = '{{ auditTaskId }}'
AND findingId = '{{ findingId }}'
AND taskStatus = '{{ taskStatus }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;