Skip to content

WeightedTarget

Source code in docs_src/capo_app_mesh/types/weighted_target.py
class WeightedTarget(TypedDict, closed=True):
    virtual_node: "capo_app_mesh.types.resource_name.ResourceName"
    """<p>The virtual node to associate with the weighted target.</p>"""
    weight: "capo_app_mesh.types.percent_int.PercentInt"
    """<p>The relative weight of the weighted target.</p>"""
    port: NotRequired["capo_app_mesh.types.listener_port.ListenerPort"]
    """<p>The targeted port of the weighted object.</p>"""

port instance-attribute

port: NotRequired[ListenerPort]

The targeted port of the weighted object.

virtual_node instance-attribute

virtual_node: ResourceName

The virtual node to associate with the weighted target.

weight instance-attribute

weight: PercentInt

The relative weight of the weighted target.