aws iot create-mitigation-action
Defines an action that can be applied to audit findings by using StartAuditMitigationActionsTask. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To create a mitigation action
The following create-mitigation-action example defines a mitigation action named AddThingsToQuarantineGroup1Action that, when applied, moves things into the thing group named QuarantineGroup1. This action overrides dynamic thing groups.
aws iot create-mitigation-action --cli-input-json file://params.jsonIdentifyContents of params.json:
{
"actionName": "AddThingsToQuarantineGroup1Action",
"actionParams": {
"addThingsToThingGroupParams": {
"thingGroupNames": [
"QuarantineGroup1"
],
"overrideDynamicGroups": true
}
},
"roleArn": "arn:aws:iam::123456789012:role/service-role/MoveThingsToQuarantineGroupRole"
}
Its output
{
"actionArn": "arn:aws:iot:us-west-2:123456789012:mitigationaction/AddThingsToQuarantineGroup1Action",
"actionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}For more information, see CreateMitigationAction (Mitigation Action Commands) in the AWS IoT Developer Guide.
Options
--action-nameA friendly name for the action.--action-paramsDefines the type of action and the parameters for that action.--role-arnThe ARN of the IAM role that is used to apply the mitigation action.--tagsMetadata that can be used to manage the mitigation action.