aws iot list-mitigation-actions
Gets a list of all mitigation actions that match the specified filter criteria. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To list all defined mitigation actions
The following list-mitigation-actions example lists all defined mitigation actions for your AWS account and Region. For each action, the name, ARN, and creation date are listed.
aws iot list-mitigation-actionsIdentifyIts output, shortened
{
"actionIdentifiers": [
{
"actionName": "DeactivateCACertAction",
"actionArn": "arn:aws:iot:us-west-2:123456789012:mitigationaction/DeactivateCACertAction",
"creationDate": "2019-12-10T11:12:47.574000-08:00"
},
{
"actionName": "ResetPolicyVersionAction",
"actionArn": "arn:aws:iot:us-west-2:123456789012:mitigationaction/ResetPolicyVersionAction",
"creationDate": "2019-12-10T11:11:48.920000-08:00"
},
{
"actionName": "PublishFindingToSNSAction",
"actionArn": "arn:aws:iot:us-west-2:123456789012:mitigationaction/PublishFindingToSNSAction",
"creationDate": "2019-12-10T11:10:49.546000-08:00"
},
{
"actionName": "AddThingsToQuarantineGroupAction",
"actionArn": "arn:aws:iot:us-west-2:123456789012:mitigationaction/AddThingsToQuarantineGroupAction",
"creationDate": "2019-12-10T11:09:35.999000-08:00"
},
{
"actionName": "UpdateDeviceCertAction",
"actionArn": "arn:aws:iot:us-west-2:123456789012:mitigationaction/UpdateDeviceCertAction",
"creationDate": "2019-12-10T11:08:44.263000-08:00"
},
{
"actionName": "SampleMitigationAction",
"actionArn": "arn:aws:iot:us-west-2:123456789012:mitigationaction/SampleMitigationAction",
… 4 more linesFor more information, see ListMitigationActions (Mitigation Action Commands) in the AWS IoT Developer Guide.
Options
--action-typeSpecify a value to limit the result to mitigation actions with a specific action type.--max-resultsThe maximum number of results to return at one time.--next-tokenThe token for the next set of results.