{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-list-investigations-request-schema.json",
  "title": "ListInvestigationsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-investigation-api-openapi.yml#/components/schemas/ListInvestigationsRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The unique ID of the GuardDuty detector whose investigations you want to list. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
    },
    "SortCriteria": {
      "$ref": "#/$defs/InvestigationSortCriteria"
    },
    "MaxResults": {
      "type": "integer",
      "description": "You can use this parameter to indicate the maximum number of items you want in the response. The default value is 50."
    },
    "NextToken": {
      "type": "string",
      "description": "You can use this parameter when paginating results. Set the value of this parameter to null on your first call to the list action. For subsequent calls to the action, fill nextToken in the request with the value of NextToken from the previous response to continue listing data."
    }
  },
  "required": [
    "DetectorId"
  ],
  "$defs": {
    "InvestigationSortCriteria": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "enum": [
            "START_TIME",
            "END_TIME",
            "STATUS",
            "RISK_LEVEL",
            "CONFIDENCE"
          ],
          "description": "The attribute by which to sort investigations."
        },
        "OrderBy": {
          "type": "string",
          "enum": [
            "ASC",
            "DESC"
          ],
          "description": "The order in which the sorted results are to be displayed."
        }
      }
    }
  }
}