Interface WeightedTarget

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
WeightedTarget.Jsii$Proxy

@Generated(value="jsii-pacmak/1.104.0 (build e79254c)", date="2024-11-21T06:34:03.398Z") @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();
 
  • Method Details

    • getVirtualNode

      @Stability(Stable) @NotNull IVirtualNode getVirtualNode()
      The VirtualNode the route points to.
    • getPort

      @Stability(Stable) @Nullable default Number getPort()
      The port to match from the request.

      Default: - do not match on port

    • getWeight

      @Stability(Stable) @Nullable default Number getWeight()
      The weight for the target.

      Default: 1

    • builder

      @Stability(Stable) static WeightedTarget.Builder builder()
      Returns:
      a WeightedTarget.Builder of WeightedTarget