{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-api-gateway/json-schema/aws-api-gateway-create-routing-rule-response-schema.json",
  "title": "CreateRoutingRuleResponse",
  "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/CreateRoutingRuleResponse",
  "type": "object",
  "properties": {
    "Actions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoutingRuleAction"
      },
      "description": "Represents a routing rule action. The only supported action is invokeApi."
    },
    "Conditions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoutingRuleCondition"
      },
      "description": "Represents a condition. Conditions can contain up to two matchHeaders conditions and one matchBasePaths conditions. API Gateway evaluates header conditions and base path conditions together. You can only use AND between header and base path conditions."
    },
    "Priority": {
      "type": "integer",
      "description": "Represents the priority of the routing rule."
    },
    "RoutingRuleArn": {
      "type": "string",
      "description": "The ARN of the domain name."
    },
    "RoutingRuleId": {
      "type": "string",
      "description": "The routing rule ID."
    }
  },
  "$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"
      ]
    }
  }
}