interface WeightedTarget
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.WeightedTarget |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#WeightedTarget |
Java | software.amazon.awscdk.services.appmesh.WeightedTarget |
Python | aws_cdk.aws_appmesh.WeightedTarget |
TypeScript (source) | aws-cdk-lib » 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 { 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
Name | Type | Description |
---|---|---|
virtual | IVirtual | The VirtualNode the route points to. |
port? | number | The port to match from the request. |
weight? | number | The weight for the target. |
virtualNode
Type:
IVirtual
The VirtualNode the route points to.
port?
Type:
number
(optional, default: do not match on port)
The port to match from the request.
weight?
Type:
number
(optional, default: 1)
The weight for the target.