aws iot update-mitigation-action
Updates the definition for the specified mitigation action. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To update a mitigation action
The following update-mitigation-action example updates the specified mitigation action named AddThingsToQuarantineGroupAction, changes the thing group name, and sets overrideDynamicGroups to false. You can verify your changes by using the describe-mitigation-action command.
aws iot update-mitigation-action --cli-input-json "{ \"actionName\": \"AddThingsToQuarantineGroupAction\", \"actionParams\": { \"addThingsToThingGroupParams\": {\"thingGroupNames\":[\"QuarantineGroup2\"],\"overrideDynamicGroups\": false}}}"IdentifyIts output
{
"actionArn": "arn:aws:iot:us-west-2:123456789012:mitigationaction/AddThingsToQuarantineGroupAction",
"actionId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111"
}For more information, see UpdateMitigationAction (Mitigation Action Commands) in the AWS IoT Developer Guide.
Options
--action-nameThe friendly name for the mitigation 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.