Interface WeightedTarget
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
WeightedTarget.Jsii$Proxy
@Generated(value="jsii-pacmak/1.121.0 (build d7af9b9)",
date="2025-12-18T18:20:04.957Z")
@Stability(Stable)
public interface WeightedTarget
extends software.amazon.jsii.JsiiSerializable
Properties for the Weighted Targets in the route.
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.*;
VirtualNode virtualNode;
WeightedTarget weightedTarget = WeightedTarget.builder()
.virtualNode(virtualNode)
// the properties below are optional
.port(123)
.weight(123)
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forWeightedTargetstatic final classAn implementation forWeightedTarget -
Method Summary
Modifier and TypeMethodDescriptionstatic WeightedTarget.Builderbuilder()default NumbergetPort()The port to match from the request.The VirtualNode the route points to.default NumberThe weight for the target.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getVirtualNode
The VirtualNode the route points to. -
getPort
The port to match from the request.Default: - do not match on port
-
getWeight
The weight for the target.Default: 1
-
builder
- Returns:
- a
WeightedTarget.BuilderofWeightedTarget
-