Show / Hide Table of Contents

Class TcpRouteSpecOptions

Properties specific for a TCP Based Routes.

Inheritance
object
TcpRouteSpecOptions
Implements
ITcpRouteSpecOptions
IRouteSpecOptionsBase
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TcpRouteSpecOptions : ITcpRouteSpecOptions, IRouteSpecOptionsBase
Syntax (vb)
Public Class TcpRouteSpecOptions 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 specific for a TCP Based Routes.

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()

Properties specific for a TCP Based Routes.

public TcpRouteSpecOptions()
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)
                }
            };

Properties

Priority

The priority for the route.

public double? Priority { get; set; }
Property Value

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

ITcpTimeout

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

IWeightedTarget[]

Remarks

ExampleMetadata: fixture=_generated

Implements

ITcpRouteSpecOptions
IRouteSpecOptionsBase
Back to top Generated by DocFX