WeightedTarget

class aws_cdk.aws_appmesh.WeightedTarget(*, virtual_node, port=None, weight=None)

Bases: object

Properties for the Weighted Targets in the route.

Parameters:
  • virtual_node (IVirtualNode) – The VirtualNode the route points to.

  • port (Union[int, float, None]) – The port to match from the request. Default: - do not match on port

  • weight (Union[int, float, None]) – The weight for the target. Default: 1

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_appmesh as appmesh

# virtual_node: appmesh.VirtualNode

weighted_target = appmesh.WeightedTarget(
    virtual_node=virtual_node,

    # the properties below are optional
    port=123,
    weight=123
)

Attributes

port

The port to match from the request.

Default:
  • do not match on port

virtual_node

The VirtualNode the route points to.

weight

The weight for the target.

Default:

1