CmdID

CmdID / aws / aws iot

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

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

Examples

from aws-cli, each command read by CmdID

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.jsonIdentify

Contents 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

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