{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-migration-hub/json-schema/amazon-migration-hub-create-route-response-schema.json",
  "title": "CreateRouteResponse",
  "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/CreateRouteResponse",
  "type": "object",
  "properties": {
    "RouteId": {
      "type": "string",
      "description": "The unique identifier of the route."
    },
    "Arn": {
      "type": "string",
      "description": "The Amazon Resource Name (ARN) of the route. The format for this ARN is arn:aws:refactor-spaces:region:account-id:resource-type/resource-id . For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference."
    },
    "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 route type of the route."
    },
    "ServiceId": {
      "type": "string",
      "description": "The ID of service in which the route is created. Traffic that matches this route is forwarded to this service."
    },
    "ApplicationId": {
      "type": "string",
      "description": "The ID of the application in which the route is created."
    },
    "UriPathRoute": {
      "$ref": "#/$defs/UriPathRouteInput"
    },
    "State": {
      "type": "string",
      "description": "The current state of the route. Activation state only allows ACTIVE or INACTIVE as user inputs. FAILED is a route state that is system generated."
    },
    "Tags": {
      "type": "object",
      "additionalProperties": {
        "type": "string"
      },
      "description": "The tags assigned to the created route. A tag is a label that you assign to an Amazon Web Services resource. Each tag consists of a key-value pair."
    },
    "LastUpdatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the route was last updated."
    },
    "CreatedTime": {
      "type": "string",
      "format": "date-time",
      "description": "A timestamp that indicates when the route is created."
    }
  },
  "$defs": {
    "UriPathRouteInput": {
      "type": "object",
      "properties": {
        "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'."
        },
        "ActivationState": {
          "type": "string",
          "description": "If set to ACTIVE, traffic is forwarded to this route’s service after the route is created."
        },
        "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."
        },
        "AppendSourcePath": {
          "type": "boolean",
          "description": "If set to true, this option appends the source path to the service URL endpoint."
        }
      },
      "required": [
        "SourcePath",
        "ActivationState"
      ]
    }
  }
}