{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-device-defender/json-schema/amazon-iot-device-defender-list-detect-mitigation-actions-executions-response-schema.json",
  "title": "ListDetectMitigationActionsExecutionsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-device-defender-detect-api-openapi.yml#/components/schemas/ListDetectMitigationActionsExecutionsResponse",
  "type": "object",
  "properties": {
    "actionsExecutions": {
      "allOf": [
        {
          "$ref": "#/$defs/DetectMitigationActionExecutionList"
        },
        {
          "description": " List of actions executions. "
        }
      ]
    },
    "nextToken": {
      "allOf": [
        {
          "$ref": "#/$defs/NextToken"
        },
        {
          "description": " A token that can be used to retrieve the next set of results, or <code>null</code> if there are no additional results. "
        }
      ]
    }
  },
  "$defs": {
    "DetectMitigationActionExecution": {
      "type": "object",
      "properties": {
        "taskId": {
          "allOf": [
            {
              "$ref": "#/$defs/MitigationActionsTaskId"
            },
            {
              "description": " The unique identifier of the task. "
            }
          ]
        },
        "violationId": {
          "allOf": [
            {
              "$ref": "#/$defs/ViolationId"
            },
            {
              "description": " The unique identifier of the violation. "
            }
          ]
        },
        "actionName": {
          "allOf": [
            {
              "$ref": "#/$defs/MitigationActionName"
            },
            {
              "description": " The friendly name that uniquely identifies the mitigation action. "
            }
          ]
        },
        "thingName": {
          "allOf": [
            {
              "$ref": "#/$defs/DeviceDefenderThingName"
            },
            {
              "description": " The name of the thing. "
            }
          ]
        },
        "executionStartDate": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The date a mitigation action was started. "
            }
          ]
        },
        "executionEndDate": {
          "allOf": [
            {
              "$ref": "#/$defs/Timestamp"
            },
            {
              "description": " The date a mitigation action ended. "
            }
          ]
        },
        "status": {
          "allOf": [
            {
              "$ref": "#/$defs/DetectMitigationActionExecutionStatus"
            },
            {
              "description": " The status of a mitigation action. "
            }
          ]
        },
        "errorCode": {
          "allOf": [
            {
              "$ref": "#/$defs/DetectMitigationActionExecutionErrorCode"
            },
            {
              "description": " The error code of a mitigation action. "
            }
          ]
        },
        "message": {
          "allOf": [
            {
              "$ref": "#/$defs/ErrorMessage"
            },
            {
              "description": " The message of a mitigation action. "
            }
          ]
        }
      },
      "description": " Describes which mitigation actions should be executed. "
    },
    "DetectMitigationActionExecutionErrorCode": {
      "type": "string"
    },
    "DetectMitigationActionExecutionList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DetectMitigationActionExecution"
      }
    },
    "DetectMitigationActionExecutionStatus": {
      "type": "string",
      "enum": [
        "IN_PROGRESS",
        "SUCCESSFUL",
        "FAILED",
        "SKIPPED"
      ]
    },
    "DeviceDefenderThingName": {
      "type": "string",
      "minLength": 1,
      "maxLength": 128
    },
    "ErrorMessage": {
      "type": "string",
      "maxLength": 2048
    },
    "MitigationActionName": {
      "type": "string",
      "pattern": "[a-zA-Z0-9_-]+",
      "maxLength": 128
    },
    "MitigationActionsTaskId": {
      "type": "string",
      "pattern": "[a-zA-Z0-9_-]+",
      "minLength": 1,
      "maxLength": 128
    },
    "NextToken": {
      "type": "string"
    },
    "Timestamp": {
      "type": "string",
      "format": "date-time"
    },
    "ViolationId": {
      "type": "string",
      "pattern": "[a-zA-Z0-9\\-]+",
      "minLength": 1,
      "maxLength": 128
    }
  }
}