{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-get-findings-request-schema.json",
  "title": "GetFindingsRequest",
  "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/GetFindingsRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The ID of the detector that specifies the GuardDuty service whose findings you want to retrieve. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
    },
    "FindingIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the findings that you want to retrieve."
    },
    "SortCriteria": {
      "$ref": "#/$defs/SortCriteria"
    }
  },
  "required": [
    "DetectorId",
    "FindingIds"
  ],
  "$defs": {
    "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."
        }
      }
    }
  }
}