AWS App Mesh · JSON Structure

App Mesh Weighted Target Structure

An object that represents a target and its relative weight. Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.

Type: object Properties: 3 Required: 2
DeprecatedEnvoyMicroservicesNetworkingService Mesh

WeightedTarget is a JSON Structure definition published by AWS App Mesh, describing 3 properties, of which 2 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

port virtualNode weight

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "type": "object",
  "properties": {
    "port": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ListenerPort"
        },
        {
          "description": "The targeted port of the weighted object."
        }
      ]
    },
    "virtualNode": {
      "allOf": [
        {
          "$ref": "#/components/schemas/ResourceName"
        },
        {
          "description": "The virtual node to associate with the weighted target."
        }
      ]
    },
    "weight": {
      "allOf": [
        {
          "$ref": "#/components/schemas/PercentInt"
        },
        {
          "description": "The relative weight of the weighted target."
        }
      ]
    }
  },
  "required": [
    "virtualNode",
    "weight"
  ],
  "description": "An object that represents a target and its relative weight. Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.",
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/aws-app-mesh/refs/heads/main/json-structure/app-mesh-weighted-target-structure.json",
  "name": "WeightedTarget"
}