Skip to content
v2.273.0

WeightedTarget Struct ​

Properties for the Weighted Targets in the route.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';

declare const virtualNode: appmesh.VirtualNode;
const weightedTarget: appmesh.WeightedTarget = {
  virtualNode: virtualNode,

  // the properties below are optional
  port: 123,
  weight: 123,
};

Properties ​

portnumberportint | floatportNumberPortdoublePort*float64= do not match on port#
The port to match from the request.
virtualNodeIVirtualNodevirtual_nodeIVirtualNodevirtualNodeIVirtualNodeVirtualNodeIVirtualNodeVirtualNodeIVirtualNoderequired#
The VirtualNode the route points to.
weightnumberweightint | floatweightNumberWeightdoubleWeight*float64= 1#
The weight for the target.