{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-guardduty/json-schema/amazon-guardduty-list-custom-detection-rules-request-schema.json",
  "title": "ListCustomDetectionRulesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-guardduty-custom-detection-rule-api-openapi.yml#/components/schemas/ListCustomDetectionRulesRequest",
  "type": "object",
  "properties": {
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results to return in a single page. Minimum value of 1, maximum value of 100."
    },
    "NextToken": {
      "type": "string",
      "description": "A pagination token from a previous response. Use this token to retrieve the next page of results."
    },
    "Filters": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/DetectionRuleFilter"
      },
      "description": "A list of filter criteria to apply when listing custom detection rules."
    }
  },
  "$defs": {
    "DetectionRuleFilter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "name",
            "description",
            "dataSource",
            "severity",
            "tactic",
            "technique",
            "service"
          ],
          "description": "The name of the field to filter by."
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The values to match against the specified filter name."
        },
        "Condition": {
          "type": "string",
          "enum": [
            "EQUALS",
            "CONTAINS"
          ],
          "description": "The condition to apply to the filter. For example, EQUALS or CONTAINS."
        }
      },
      "required": [
        "Name",
        "Values"
      ]
    }
  }
}