{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/amazon-application-discovery-service/json-schema/amazon-application-discovery-service-list-server-neighbors-response-schema.json",
  "title": "ListServerNeighborsResponse",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/amazon-application-discovery-service-operations-api-openapi.yml#/components/schemas/ListServerNeighborsResponse",
  "type": "object",
  "properties": {
    "neighbors": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/NeighborConnectionDetail"
      },
      "description": "List of distinct servers that are one hop away from the given server."
    },
    "nextToken": {
      "type": "string",
      "description": "Token to retrieve the next set of results. For example, if you specified 100 IDs for ListServerNeighborsRequest$neighborConfigurationIds but set ListServerNeighborsRequest$maxResults to 10, you received a set of 10 results along with this token. Use this token in the next query to retrieve the next set of 10."
    },
    "knownDependencyCount": {
      "type": "integer",
      "description": "Count of distinct servers that are one hop away from the given server."
    }
  },
  "required": [
    "neighbors"
  ],
  "$defs": {
    "NeighborConnectionDetail": {
      "type": "object",
      "properties": {
        "sourceServerId": {
          "type": "string",
          "description": "The ID of the server that opened the network connection."
        },
        "destinationServerId": {
          "type": "string",
          "description": "The ID of the server that accepted the network connection."
        },
        "destinationPort": {
          "type": "integer",
          "description": "The destination network port for the connection."
        },
        "transportProtocol": {
          "type": "string",
          "description": "The network protocol used for the connection."
        },
        "connectionsCount": {
          "type": "integer",
          "description": "The number of open network connections with the neighboring server."
        }
      },
      "required": [
        "sourceServerId",
        "destinationServerId",
        "connectionsCount"
      ]
    }
  }
}