{
 "additionalProperties": false,
 "createOnlyProperties": [
  "/properties/MeshName",
  "/properties/VirtualRouterName",
  "/properties/MeshOwner"
 ],
 "definitions": {
  "PortMapping": {
   "additionalProperties": false,
   "properties": {
    "Port": {
     "type": "integer"
    },
    "Protocol": {
     "type": "string"
    }
   },
   "required": [
    "Port",
    "Protocol"
   ],
   "type": "object"
  },
  "Tag": {
   "additionalProperties": false,
   "properties": {
    "Key": {
     "type": "string"
    },
    "Value": {
     "type": "string"
    }
   },
   "required": [
    "Value",
    "Key"
   ],
   "type": "object"
  },
  "VirtualRouterListener": {
   "additionalProperties": false,
   "properties": {
    "PortMapping": {
     "$ref": "#/definitions/PortMapping"
    }
   },
   "required": [
    "PortMapping"
   ],
   "type": "object"
  },
  "VirtualRouterSpec": {
   "additionalProperties": false,
   "properties": {
    "Listeners": {
     "items": {
      "$ref": "#/definitions/VirtualRouterListener"
     },
     "type": "array",
     "uniqueItems": false
    }
   },
   "required": [
    "Listeners"
   ],
   "type": "object"
  }
 },
 "lifecycle": {
  "date": "2026-09-30",
  "status": "sunset"
 },
 "primaryIdentifier": [
  "/properties/Id"
 ],
 "properties": {
  "Arn": {
   "type": "string"
  },
  "Id": {
   "type": "string"
  },
  "MeshName": {
   "type": "string"
  },
  "MeshOwner": {
   "type": "string"
  },
  "ResourceOwner": {
   "type": "string"
  },
  "Spec": {
   "$ref": "#/definitions/VirtualRouterSpec"
  },
  "Tags": {
   "items": {
    "$ref": "#/definitions/Tag"
   },
   "type": "array",
   "uniqueItems": false
  },
  "Uid": {
   "type": "string"
  },
  "VirtualRouterName": {
   "type": "string"
  }
 },
 "readOnlyProperties": [
  "/properties/Id",
  "/properties/ResourceOwner",
  "/properties/Arn",
  "/properties/Uid"
 ],
 "required": [
  "MeshName",
  "Spec"
 ],
 "typeName": "AWS::AppMesh::VirtualRouter"
}
