Skip to content
v2.275.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 ​

portoptionalnumberportoptionalint | floatportoptionalNumberPortoptionaldoublePortoptional*float64#
The port to match from the request.

Default: do not match on port

virtualNodeIVirtualNodevirtual_nodeIVirtualNodevirtualNodeIVirtualNodeVirtualNodeIVirtualNodeVirtualNodeIVirtualNoderequired#
The VirtualNode the route points to.
weightoptionalnumberweightoptionalint | floatweightoptionalNumberWeightoptionaldoubleWeightoptional*float64= 1#
The weight for the target.