{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-ses/json-schema/amazon-ses-create-receipt-filter-request-schema.json",
  "title": "CreateReceiptFilterRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-ses-receipt-filter-api-openapi.yml#/components/schemas/CreateReceiptFilterRequest",
  "type": "object",
  "properties": {
    "Filter": {
      "$ref": "#/$defs/ReceiptFilter"
    }
  },
  "required": [
    "Filter"
  ],
  "$defs": {
    "ReceiptFilter": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "description": "The name of the IP address filter. The name must meet the following requirements: Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-). Start and end with a letter or number. Contain 64 characters or fewer."
        },
        "IpFilter": {
          "$ref": "#/$defs/ReceiptIpFilter"
        }
      },
      "required": [
        "Name",
        "IpFilter"
      ]
    },
    "ReceiptIpFilter": {
      "type": "object",
      "properties": {
        "Policy": {
          "type": "string",
          "enum": [
            "Block",
            "Allow"
          ],
          "description": "Indicates whether to block or allow incoming mail from the specified IP addresses."
        },
        "Cidr": {
          "type": "string",
          "description": "A single IP address or a range of IP addresses to block or allow, specified in Classless Inter-Domain Routing (CIDR) notation. An example of a single email address is 10.0.0.1. An example of a range of IP addresses is 10.0.0.1/24. For more information about CIDR notation, see RFC 2317."
        }
      },
      "required": [
        "Policy",
        "Cidr"
      ]
    }
  }
}