interface WeightedTarget
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.AppMesh.WeightedTarget |
![]() | software.amazon.awscdk.services.appmesh.WeightedTarget |
![]() | aws_cdk.aws_appmesh.WeightedTarget |
![]() | @aws-cdk/aws-appmesh » WeightedTarget |
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 * as appmesh from '@aws-cdk/aws-appmesh';
declare const virtualNode: appmesh.VirtualNode;
const weightedTarget: appmesh.WeightedTarget = {
virtualNode: virtualNode,
// the properties below are optional
weight: 123,
};
Properties
Name | Type | Description |
---|---|---|
virtual | IVirtual | The VirtualNode the route points to. |
weight? | number | The weight for the target. |
virtualNode
Type:
IVirtual
The VirtualNode the route points to.
weight?
Type:
number
(optional, default: 1)
The weight for the target.