Interface CfnRoute.IWeightedTargetProperty
An object that represents a target and its relative weight.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.AWS.AppMesh.dll
Syntax (csharp)
public interface IWeightedTargetProperty
Syntax (vb)
Public Interface IWeightedTargetProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppMesh;
var weightedTargetProperty = new WeightedTargetProperty {
VirtualNode = "virtualNode",
Weight = 123,
// the properties below are optional
Port = 123
};
Synopsis
Properties
Port | The targeted port of the weighted object. |
VirtualNode | The virtual node to associate with the weighted target. |
Weight | The relative weight of the weighted target. |
Properties
Port
The targeted port of the weighted object.
virtual Nullable<double> Port { get; }
Property Value
System.Nullable<System.Double>
Remarks
VirtualNode
The virtual node to associate with the weighted target.
string VirtualNode { get; }
Property Value
System.String
Remarks
Weight
The relative weight of the weighted target.
double Weight { get; }
Property Value
System.Double