{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-cloud-wan/json-schema/amazon-cloud-wan-get-network-routes-request-schema.json",
  "title": "GetNetworkRoutesRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-cloud-wan-operations-api-openapi.yml#/components/schemas/GetNetworkRoutesRequest",
  "type": "object",
  "properties": {
    "GlobalNetworkId": {
      "type": "string",
      "description": "The ID of the global network."
    },
    "RouteTableIdentifier": {
      "$ref": "#/$defs/RouteTableIdentifier"
    },
    "ExactCidrMatches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "An exact CIDR block."
    },
    "LongestPrefixMatches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The most specific route that matches the traffic (longest prefix match)."
    },
    "SubnetOfMatches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The routes with a subnet that match the specified CIDR filter."
    },
    "SupernetOfMatches": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The routes with a CIDR that encompasses the CIDR filter. Example: If you specify 10.0.1.0/30, then the result returns 10.0.1.0/29."
    },
    "PrefixListIds": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "The IDs of the prefix lists."
    },
    "States": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "ACTIVE",
          "BLACKHOLE"
        ]
      },
      "description": "The route states."
    },
    "Types": {
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "PROPAGATED",
          "STATIC",
          "SYSTEM"
        ]
      },
      "description": "The route types."
    },
    "DestinationFilters": {
      "type": "object",
      "additionalProperties": {
        "type": "array",
        "items": {
          "type": "string"
        }
      },
      "description": "Filter by route table destination. Possible Values: TRANSIT_GATEWAY_ATTACHMENT_ID, RESOURCE_ID, or RESOURCE_TYPE."
    },
    "MaxResults": {
      "type": "integer",
      "description": "The maximum number of results to return."
    },
    "NextToken": {
      "type": "string",
      "description": "The token for the next page of results."
    }
  },
  "required": [
    "GlobalNetworkId",
    "RouteTableIdentifier"
  ],
  "$defs": {
    "CoreNetworkNetworkFunctionGroupIdentifier": {
      "type": "object",
      "properties": {
        "CoreNetworkId": {
          "type": "string",
          "description": "The ID of the core network."
        },
        "NetworkFunctionGroupName": {
          "type": "string",
          "description": "The network function group name."
        },
        "EdgeLocation": {
          "type": "string",
          "description": "The location for the core network edge."
        }
      }
    },
    "CoreNetworkSegmentEdgeIdentifier": {
      "type": "object",
      "properties": {
        "CoreNetworkId": {
          "type": "string",
          "description": "The ID of a core network."
        },
        "SegmentName": {
          "type": "string",
          "description": "The name of the segment edge."
        },
        "EdgeLocation": {
          "type": "string",
          "description": "The Region where the segment edge is located."
        }
      }
    },
    "RouteTableIdentifier": {
      "type": "object",
      "properties": {
        "TransitGatewayRouteTableArn": {
          "type": "string",
          "description": "The ARN of the transit gateway route table for the attachment request. For example, \"TransitGatewayRouteTableArn\": \"arn:aws:ec2:us-west-2:123456789012:transit-gateway-route-table/tgw-rtb-9876543210123456\"."
        },
        "CoreNetworkSegmentEdge": {
          "$ref": "#/$defs/CoreNetworkSegmentEdgeIdentifier"
        },
        "CoreNetworkNetworkFunctionGroup": {
          "$ref": "#/$defs/CoreNetworkNetworkFunctionGroupIdentifier"
        }
      }
    }
  }
}