{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-api-gateway/json-schema/aws-api-gateway-put-routing-rule-request-schema.json",
  "title": "PutRoutingRuleRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-api-gateway-routingrules-api-openapi.yml#/components/schemas/PutRoutingRuleRequest",
  "type": "object",
  "properties": {
    "Actions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoutingRuleAction"
      },
      "description": "The routing rule action."
    },
    "Conditions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoutingRuleCondition"
      },
      "description": "The routing rule condition."
    },
    "DomainName": {
      "type": "string",
      "description": "The domain name."
    },
    "DomainNameId": {
      "type": "string",
      "description": "The domain name ID."
    },
    "Priority": {
      "type": "integer",
      "description": "The routing rule priority."
    },
    "RoutingRuleId": {
      "type": "string",
      "description": "The routing rule ID."
    }
  },
  "required": [
    "Actions",
    "Conditions",
    "DomainName",
    "Priority",
    "RoutingRuleId"
  ],
  "$defs": {
    "RoutingRuleAction": {
      "type": "object",
      "properties": {
        "InvokeApi": {
          "$ref": "#/$defs/RoutingRuleActionInvokeApi"
        }
      },
      "required": [
        "InvokeApi"
      ]
    },
    "RoutingRuleActionInvokeApi": {
      "type": "object",
      "properties": {
        "ApiId": {
          "type": "string"
        },
        "Stage": {
          "type": "string"
        },
        "StripBasePath": {
          "type": "boolean",
          "description": "The strip base path setting."
        }
      },
      "required": [
        "ApiId",
        "Stage"
      ]
    },
    "RoutingRuleCondition": {
      "type": "object",
      "properties": {
        "MatchBasePaths": {
          "$ref": "#/$defs/RoutingRuleMatchBasePaths"
        },
        "MatchHeaders": {
          "$ref": "#/$defs/RoutingRuleMatchHeaders"
        }
      }
    },
    "RoutingRuleMatchBasePaths": {
      "type": "object",
      "properties": {
        "AnyOf": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "The string of the case sensitive base path to be matched."
        }
      },
      "required": [
        "AnyOf"
      ]
    },
    "RoutingRuleMatchHeaderValue": {
      "type": "object",
      "properties": {
        "Header": {
          "type": "string"
        },
        "ValueGlob": {
          "type": "string"
        }
      },
      "required": [
        "Header",
        "ValueGlob"
      ]
    },
    "RoutingRuleMatchHeaders": {
      "type": "object",
      "properties": {
        "AnyOf": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/RoutingRuleMatchHeaderValue"
          },
          "description": "The header name and header value glob to be matched. The matchHeaders condition is matched if any of the header name and header value globs are matched."
        }
      },
      "required": [
        "AnyOf"
      ]
    }
  }
}