{
  "typeName" : "AWS::AppMesh::VirtualService",
  "description" : "Resource Type definition for AWS::AppMesh::VirtualService",
  "additionalProperties" : false,
  "properties" : {
    "Uid" : {
      "type" : "string"
    },
    "MeshName" : {
      "type" : "string"
    },
    "MeshOwner" : {
      "type" : "string"
    },
    "ResourceOwner" : {
      "type" : "string"
    },
    "Id" : {
      "type" : "string"
    },
    "VirtualServiceName" : {
      "type" : "string"
    },
    "Arn" : {
      "type" : "string"
    },
    "Spec" : {
      "$ref" : "#/definitions/VirtualServiceSpec"
    },
    "Tags" : {
      "type" : "array",
      "uniqueItems" : false,
      "items" : {
        "$ref" : "#/definitions/Tag"
      }
    }
  },
  "definitions" : {
    "VirtualNodeServiceProvider" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "VirtualNodeName" : {
          "type" : "string"
        }
      },
      "required" : [ "VirtualNodeName" ]
    },
    "VirtualServiceProvider" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "VirtualNode" : {
          "$ref" : "#/definitions/VirtualNodeServiceProvider"
        },
        "VirtualRouter" : {
          "$ref" : "#/definitions/VirtualRouterServiceProvider"
        }
      }
    },
    "Tag" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Value" : {
          "type" : "string"
        },
        "Key" : {
          "type" : "string"
        }
      },
      "required" : [ "Value", "Key" ]
    },
    "VirtualServiceSpec" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "Provider" : {
          "$ref" : "#/definitions/VirtualServiceProvider"
        }
      }
    },
    "VirtualRouterServiceProvider" : {
      "type" : "object",
      "additionalProperties" : false,
      "properties" : {
        "VirtualRouterName" : {
          "type" : "string"
        }
      },
      "required" : [ "VirtualRouterName" ]
    }
  },
  "required" : [ "MeshName", "VirtualServiceName", "Spec" ],
  "createOnlyProperties" : [ "/properties/MeshName", "/properties/VirtualServiceName", "/properties/MeshOwner" ],
  "primaryIdentifier" : [ "/properties/Id" ],
  "readOnlyProperties" : [ "/properties/Id", "/properties/ResourceOwner", "/properties/Arn", "/properties/Uid" ]
}