{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-route-53/json-schema/amazon-route-53-list-domains-request-schema.json",
  "title": "ListDomainsRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-route-53-domain-api-openapi.yml#/components/schemas/ListDomainsRequest",
  "type": "object",
  "properties": {
    "FilterConditions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/FilterCondition"
      },
      "description": "A complex type that contains information about the filters applied during the ListDomains request. The filter conditions can include domain name and domain expiration."
    },
    "SortCondition": {
      "$ref": "#/$defs/SortCondition"
    },
    "Marker": {
      "type": "string",
      "description": "For an initial request for a list of domains, omit this element. If the number of domains that are associated with the current Amazon Web Services account is greater than the value that you specified for MaxItems, you can use Marker to return additional domains. Get the value of NextPageMarker from the previous response, and submit another request that includes the value of NextPageMarker in the Marker element. Constraints: The marker must match the value specified in the previous request."
    },
    "MaxItems": {
      "type": "integer",
      "description": "Number of domains to be returned. Default: 20"
    }
  },
  "$defs": {
    "FilterCondition": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "DomainName",
            "Expiry"
          ],
          "description": "Name of the field which should be used for filtering the list of domains."
        },
        "Operator": {
          "type": "string",
          "enum": [
            "LE",
            "GE",
            "BEGINS_WITH"
          ],
          "description": "The operator values for filtering domain names. The values can be: LE: Less than, or equal to GE: Greater than, or equal to BEGINS_WITH: Begins with"
        },
        "Values": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "An array of strings presenting values to compare. Only 1 item in the list is currently supported."
        }
      },
      "required": [
        "Name",
        "Operator",
        "Values"
      ]
    },
    "SortCondition": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "enum": [
            "DomainName",
            "Expiry"
          ],
          "description": "Field to be used for sorting the list of domains. It can be either the name or the expiration for a domain. Note that if filterCondition is used in the same ListDomains call, the field used for sorting has to be the same as the field used for filtering."
        },
        "SortOrder": {
          "type": "string",
          "enum": [
            "ASC",
            "DESC"
          ],
          "description": "The sort order for a list of domains. Either ascending (ASC) or descending (DES)."
        }
      },
      "required": [
        "Name",
        "SortOrder"
      ]
    }
  }
}