aws iot start-audit-mitigation-actions-task
Starts a task that applies a set of mitigation actions to the specified target. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To apply a mitigation action to the findings from an audit
The following start-audit-mitigation-actions-task example applies the ResetPolicyVersionAction action (which clears the policy) to the specified single finding.
aws iot start-audit-mitigation-actions-task --task-id "myActionsTaskId" --target "findingIds=[\"a1b2c3d4-5678-90ab-cdef-EXAMPLE11111\"]" --audit-check-to-actions-mapping "IOT_POLICY_OVERLY_PERMISSIVE_CHECK=[\"ResetPolicyVersionAction\"]" --client-request-token "adhadhahda"Identify--task-idA unique identifier for the task.--targetSpecifies the audit findings to which the mitigation actions are applied.--audit-check-to-actions-mappingFor an audit check, specifies which mitigation actions to apply.--client-request-tokenEach audit mitigation task must have a unique client request token.Its output
{
"taskId": "myActionsTaskId"
}For more information, see StartAuditMitigationActionsTask (Mitigation Action Commands) in the AWS IoT Developer Guide.
Options
--audit-check-to-actions-mappingFor an audit check, specifies which mitigation actions to apply.--client-request-tokenEach audit mitigation task must have a unique client request token.--targetSpecifies the audit findings to which the mitigation actions are applied.--task-idA unique identifier for the task.