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
The port to match from the request.
virtualNodeIVirtualNodevirtual_nodeIVirtualNodevirtualNodeIVirtualNodeVirtualNodeIVirtualNodeVirtualNodeIVirtualNoderequired#The VirtualNode the route points to.
The weight for the target.