{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-describe-malware-scans-request-schema.json",
  "title": "DescribeMalwareScansRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-malware-scan-api-openapi.yml#/components/schemas/DescribeMalwareScansRequest",
  "type": "object",
  "properties": {
    "DetectorId": {
      "type": "string",
      "description": "The unique ID of the detector that the request is associated with. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API."
    },
    "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."
    },
    "MaxResults": {
      "type": "integer",
      "description": "You can use this parameter to indicate the maximum number of items that you want in the response. The default value is 50. The maximum value is 50."
    },
    "FilterCriteria": {
      "$ref": "#/$defs/FilterCriteria"
    },
    "SortCriteria": {
      "$ref": "#/$defs/SortCriteria"
    }
  },
  "required": [
    "DetectorId"
  ],
  "$defs": {
    "FilterCondition": {
      "type": "object",
      "properties": {
        "EqualsValue": {
          "type": "string",
          "description": "Represents an equal condition to be applied to a single field when querying for scan entries."
        },
        "GreaterThan": {
          "type": "integer",
          "description": "Represents a greater than condition to be applied to a single field when querying for scan entries."
        },
        "LessThan": {
          "type": "integer",
          "description": "Represents a less than condition to be applied to a single field when querying for scan entries."
        }
      }
    },
    "FilterCriteria": {
      "type": "object",
      "properties": {
        "FilterCriterion": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/FilterCriterion"
          },
          "description": "Represents a condition that when matched will be added to the response of the operation."
        }
      }
    },
    "FilterCriterion": {
      "type": "object",
      "properties": {
        "CriterionKey": {
          "type": "string",
          "enum": [
            "EC2_INSTANCE_ARN",
            "SCAN_ID",
            "ACCOUNT_ID",
            "GUARDDUTY_FINDING_ID",
            "SCAN_START_TIME",
            "SCAN_STATUS",
            "SCAN_TYPE"
          ],
          "description": "An enum value representing possible scan properties to match with given scan entries."
        },
        "FilterCondition": {
          "$ref": "#/$defs/FilterCondition"
        }
      }
    },
    "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."
        }
      }
    }
  }
}