aws-cdk-lib.aws_appmesh.WeightedTarget

interface WeightedTarget

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.WeightedTarget
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#WeightedTarget
Javasoftware.amazon.awscdk.services.appmesh.WeightedTarget
Pythonaws_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
  weight: 123,
};

Properties

NameTypeDescription
virtualNodeIVirtualNodeThe VirtualNode the route points to.
weight?numberThe weight for the target.

virtualNode

Type: IVirtualNode

The VirtualNode the route points to.


weight?

Type: number (optional, default: 1)

The weight for the target.