interface WeightedTargetProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.AppMesh.Mixins.CfnRoutePropsMixin.WeightedTargetProperty |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsappmesh/mixins#CfnRoutePropsMixin_WeightedTargetProperty |
Java | software.amazon.awscdk.mixins.preview.services.appmesh.mixins.CfnRoutePropsMixin.WeightedTargetProperty |
Python | aws_cdk.mixins_preview.aws_appmesh.mixins.CfnRoutePropsMixin.WeightedTargetProperty |
TypeScript | @aws-cdk/mixins-preview » aws_appmesh » mixins » CfnRoutePropsMixin » WeightedTargetProperty |
An object that represents a target and its relative weight.
Traffic is distributed across targets according to their relative weight. For example, a weighted target with a relative weight of 50 receives five times as much traffic as one with a relative weight of 10. The total weight for all targets combined must be less than or equal to 100.
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { mixins as appmesh_mixins } from '@aws-cdk/mixins-preview/aws-appmesh';
const weightedTargetProperty: appmesh_mixins.CfnRoutePropsMixin.WeightedTargetProperty = {
port: 123,
virtualNode: 'virtualNode',
weight: 123,
};
Properties
| Name | Type | Description |
|---|---|---|
| port? | number | The targeted port of the weighted object. |
| virtual | string | The virtual node to associate with the weighted target. |
| weight? | number | The relative weight of the weighted target. |
port?
Type:
number
(optional)
The targeted port of the weighted object.
virtualNode?
Type:
string
(optional)
The virtual node to associate with the weighted target.
weight?
Type:
number
(optional)
The relative weight of the weighted target.

.NET
Go
Java
Python
TypeScript