Interface CfnRoutePropsMixin.WeightedTargetProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnRoutePropsMixin.WeightedTargetProperty.Jsii$Proxy
Enclosing class:
CfnRoutePropsMixin

@Stability(Stable) public static interface CfnRoutePropsMixin.WeightedTargetProperty extends software.amazon.jsii.JsiiSerializable
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.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.mixins.preview.services.appmesh.mixins.*;
 WeightedTargetProperty weightedTargetProperty = WeightedTargetProperty.builder()
         .port(123)
         .virtualNode("virtualNode")
         .weight(123)
         .build();
 

See Also: