WeightedTarget

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

Bases: object

Properties for the Weighted Targets in the route.

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

  • 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.
import aws_cdk.aws_appmesh as appmesh

# virtual_node: appmesh.VirtualNode

weighted_target = appmesh.WeightedTarget(
    virtual_node=virtual_node,

    # the properties below are optional
    weight=123
)

Attributes

virtual_node

The VirtualNode the route points to.

Return type

IVirtualNode

weight

The weight for the target.

Default

1

Return type

Union[int, float, None]