Class TcpRouteSpecOptions
Properties specific for a TCP Based Routes.
Inheritance
System.Object
TcpRouteSpecOptions
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TcpRouteSpecOptions : Object, ITcpRouteSpecOptions, IRouteSpecOptionsBase
Syntax (vb)
Public Class TcpRouteSpecOptions
Inherits Object
Implements ITcpRouteSpecOptions, IRouteSpecOptionsBase
Remarks
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;
using Amazon.CDK.AWS.AppMesh;
VirtualNode virtualNode;
var tcpRouteSpecOptions = new TcpRouteSpecOptions {
WeightedTargets = new [] { new WeightedTarget {
VirtualNode = virtualNode,
// the properties below are optional
Port = 123,
Weight = 123
} },
// the properties below are optional
Priority = 123,
Timeout = new TcpTimeout {
Idle = Duration.Minutes(30)
}
};
Synopsis
Constructors
TcpRouteSpecOptions() |
Properties
Priority | The priority for the route. |
Timeout | An object that represents a tcp timeout. |
WeightedTargets | List of targets that traffic is routed to when a request matches the route. |
Constructors
TcpRouteSpecOptions()
public TcpRouteSpecOptions()
Properties
Priority
The priority for the route.
public Nullable<double> Priority { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
When a Virtual Router has multiple routes, route match is performed in the order of specified value, where 0 is the highest priority, and first matched route is selected.
Default: - no particular priority
Timeout
An object that represents a tcp timeout.
public ITcpTimeout Timeout { get; set; }
Property Value
Remarks
Default: - None
WeightedTargets
List of targets that traffic is routed to when a request matches the route.
public IWeightedTarget[] WeightedTargets { get; set; }
Property Value