interface WeightedTargetProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.CfnPropertyMixins.AWS.AppMesh.CfnRoutePropsMixin.WeightedTargetProperty |
Go | github.com/aws/aws-cdk-go/awscdkcfnpropertymixins/v2/awsappmesh#CfnRoutePropsMixin_WeightedTargetProperty |
Java | software.amazon.awscdk.cfnpropertymixins.services.appmesh.CfnRoutePropsMixin.WeightedTargetProperty |
Python | aws_cdk.cfn_property_mixins.aws_appmesh.CfnRoutePropsMixin.WeightedTargetProperty |
TypeScript | @aws-cdk/cfn-property-mixins » aws_appmesh » 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 { aws_appmesh as appmesh } from '@aws-cdk/cfn-property-mixins';
const weightedTargetProperty: appmesh.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