{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-iot-core/json-schema/amazon-iot-core-start-detect-mitigation-actions-task-request-schema.json",
  "title": "StartDetectMitigationActionsTaskRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-iot-core-detect-api-openapi.yml#/components/schemas/StartDetectMitigationActionsTaskRequest",
  "type": "object",
  "properties": {
    "taskId": {
      "type": "string",
      "description": "The unique identifier of the task."
    },
    "target": {
      "$ref": "#/$defs/DetectMitigationActionsTaskTarget"
    },
    "actions": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The actions to be performed when a device has unexpected behavior."
    },
    "violationEventOccurrenceRange": {
      "$ref": "#/$defs/ViolationEventOccurrenceRange"
    },
    "includeOnlyActiveViolations": {
      "type": "boolean",
      "description": "Specifies to list only active violations."
    },
    "includeSuppressedAlerts": {
      "type": "boolean",
      "description": "Specifies to include suppressed alerts."
    },
    "clientRequestToken": {
      "type": "string",
      "description": "Each mitigation action task must have a unique client request token. If you try to create a new task with the same token as a task that already exists, an exception occurs. If you omit this value, Amazon Web Services SDKs will automatically generate a unique client request."
    }
  },
  "required": [
    "taskId",
    "target",
    "actions",
    "clientRequestToken"
  ],
  "$defs": {
    "DetectMitigationActionsTaskTarget": {
      "type": "object",
      "properties": {
        "violationIds": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The unique identifiers of the violations."
        },
        "securityProfileName": {
          "type": "string",
          "description": "The name of the security profile."
        },
        "behaviorName": {
          "type": "string",
          "description": "The name of the behavior."
        }
      }
    },
    "ViolationEventOccurrenceRange": {
      "type": "object",
      "properties": {
        "startTime": {
          "type": "string",
          "format": "date-time",
          "description": "The start date and time of a time period in which violation events occurred."
        },
        "endTime": {
          "type": "string",
          "format": "date-time",
          "description": "The end date and time of a time period in which violation events occurred."
        }
      },
      "required": [
        "startTime",
        "endTime"
      ]
    }
  }
}