{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-migration-hub/json-schema/amazon-migration-hub-get-route-response-schema.json",
  "title": "GetRouteResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-migration-hub-routes-api-openapi.yml#/components/schemas/GetRouteResponse",
  "type": "object",
  "properties": {
    "RouteId": {
      "type": "string",
      "description": "The unique identifier of the route. DEFAULT: All traffic that does not match another route is forwarded to the default route. Applications must have a default route before any other routes can be created. URI_PATH: A route that is based on a URI path."
    },
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the route."
    },
    "OwnerAccountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID of the route owner."
    },
    "CreatedByAccountId": {
      "type": "string",
      "description": "The Amazon Web Services account ID of the route creator."
    },
    "RouteType": {
      "type": "string",
      "description": "The type of route."
    },
    "ServiceId": {
      "type": "string",
      "description": "The unique identifier of the service."
    },
    "ApplicationId": {
      "type": "string",
      "description": "The ID of the application that the route belongs to."
    },
    "EnvironmentId": {
      "type": "string",
      "description": "Unique identifier of the environment."
    },
    "SourcePath": {
      "type": "string",
      "description": "This is the path that Refactor Spaces uses to match traffic. Paths must start with / and are relative to the base of the application. To use path parameters in the source path, add a variable in curly braces. For example, the resource path {user} represents a path parameter called 'user'."
    },
    "Methods": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "A list of HTTP methods to match. An empty list matches all values. If a method is present, only HTTP requests using that method are forwarded to this route’s service."
    },
    "IncludeChildPaths": {
      "type": "boolean",
      "description": "Indicates whether to match all subpaths of the given source path. If this value is false, requests must match the source path exactly before they are forwarded to this route's service."
    },
    "PathResourceToId": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "A mapping of Amazon API Gateway path resources to resource IDs."
    },
    "State": {
      "type": "string",
      "description": "The current state of the route."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags assigned to the route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair."
    },
    "Error": {
      "$ref": "#/$defs/ErrorResponse"
    },
    "LastUpdatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the route was last updated."
    },
    "CreatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "The timestamp of when the route is created."
    },
    "AppendSourcePath": {
      "type": "boolean",
      "description": "If set to true, this option appends the source path to the service URL endpoint."
    }
  },
  "$defs": {
    "ErrorResponse": {
      "type": "object",
      "properties": {
        "Code": {
          "type": "string",
          "description": "The error code associated with the error."
        },
        "Message": {
          "type": "string",
          "description": "The message associated with the error."
        },
        "AccountId": {
          "type": "string",
          "description": "The Amazon Web Services account ID of the resource owner."
        },
        "ResourceIdentifier": {
          "type": "string",
          "description": "The ID of the resource."
        },
        "ResourceType": {
          "type": "string",
          "description": "The type of resource."
        },
        "AdditionalDetails": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          },
          "description": "Additional details about the error."
        }
      }
    }
  }
}