{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-api-gateway/json-schema/aws-api-gateway-get-routing-rule-response-schema.json",
  "title": "GetRoutingRuleResponse",
  "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/GetRoutingRuleResponse",
  "type": "object",
  "properties": {
    "Actions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoutingRuleAction"
      },
      "description": "The resulting action based on matching a routing rules condition. Only InvokeApi is supported."
    },
    "Conditions": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RoutingRuleCondition"
      },
      "description": "The conditions of the routing rule."
    },
    "Priority": {
      "type": "integer",
      "description": "The order in which API Gateway evaluates a rule. Priority is evaluated from the lowest value to the highest value."
    },
    "RoutingRuleArn": {
      "type": "string",
      "description": "The routing rule ARN."
    },
    "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"
      ]
    }
  }
}