Interface CfnRoute.WeightedTargetProperty

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

@Stability(Stable) public static interface CfnRoute.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.services.appmesh.*;
 WeightedTargetProperty weightedTargetProperty = WeightedTargetProperty.builder()
         .virtualNode("virtualNode")
         .weight(123)
         // the properties below are optional
         .port(123)
         .build();
 

See Also: