CmdID

CmdID / aws / aws iot

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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}}}"Identify
Its 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

3 in the AWS CLI reference
--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.