{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-list-findings-request-schema.json",
  "title": "ListFindingsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-findings-api-openapi.yml#/components/schemas/ListFindingsRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The ID of the detector that specifies the GuardDuty service whose findings 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."
    },
    "FindingCriteria": {
      "$ref": "#/$defs/FindingCriteria"
    },
    "SortCriteria": {
      "$ref": "#/$defs/SortCriteria"
    },
    "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. The maximum 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": {
    "Condition": {
      "type": "object",
      "properties": {
        "Eq": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the equal condition to be applied to a single field when querying for findings. Max values: 50"
        },
        "Neq": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the not equal condition to be applied to a single field when querying for findings. Max values: 50"
        },
        "Gt": {
          "type": "integer",
          "description": "Represents a greater than condition to be applied to a single field when querying for findings."
        },
        "Gte": {
          "type": "integer",
          "description": "Represents a greater than or equal condition to be applied to a single field when querying for findings."
        },
        "Lt": {
          "type": "integer",
          "description": "Represents a less than condition to be applied to a single field when querying for findings."
        },
        "Lte": {
          "type": "integer",
          "description": "Represents a less than or equal condition to be applied to a single field when querying for findings."
        },
        "Equals": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents an equal condition to be applied to a single field when querying for findings. Max values: 50"
        },
        "NotEquals": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents a not equal condition to be applied to a single field when querying for findings. Max values: 50"
        },
        "GreaterThan": {
          "type": "integer",
          "description": "Represents a greater than condition to be applied to a single field when querying for findings."
        },
        "GreaterThanOrEqual": {
          "type": "integer",
          "description": "Represents a greater than or equal condition to be applied to a single field when querying for findings."
        },
        "LessThan": {
          "type": "integer",
          "description": "Represents a less than condition to be applied to a single field when querying for findings."
        },
        "LessThanOrEqual": {
          "type": "integer",
          "description": "Represents a less than or equal condition to be applied to a single field when querying for findings."
        },
        "Matches": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the match condition to be applied to a single field when querying for findings. The matches condition is available only for create-filter and update-filter APIs."
        },
        "NotMatches": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Represents the not match condition to be applied to a single field when querying for findings. The not-matches condition is available only for create-filter and update-filter APIs."
        }
      }
    },
    "FindingCriteria": {
      "type": "object",
      "properties": {
        "Criterion": {
          "type": "object",
          "additionalProperties": {
            "$ref": "#/$defs/Condition"
          },
          "description": "Represents a map of finding properties that match specified conditions and values when querying findings."
        }
      }
    },
    "SortCriteria": {
      "type": "object",
      "properties": {
        "AttributeName": {
          "type": "string",
          "description": "Represents the finding attribute, such as accountId, that sorts the findings."
        },
        "OrderBy": {
          "type": "string",
          "enum": [
            "ASC",
            "DESC"
          ],
          "description": "The order by which the sorted findings are to be displayed."
        }
      }
    }
  }
}