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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnRoutePropsMixin.WeightedTargetPropertystatic final classAn implementation forCfnRoutePropsMixin.WeightedTargetProperty -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getPort
The targeted port of the weighted object.- See Also:
-
getVirtualNode
The virtual node to associate with the weighted target.- See Also:
-
getWeight
The relative weight of the weighted target.- See Also:
-
builder
-