Class TcpVirtualNodeListenerOptions
Represent the TCP Node Listener property.
Inheritance
System.Object
TcpVirtualNodeListenerOptions
Implements
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class TcpVirtualNodeListenerOptions : Object, ITcpVirtualNodeListenerOptions
Syntax (vb)
Public Class TcpVirtualNodeListenerOptions
Inherits Object
Implements ITcpVirtualNodeListenerOptions
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;
HealthCheck healthCheck;
MutualTlsValidationTrust mutualTlsValidationTrust;
SubjectAlternativeNames subjectAlternativeNames;
TlsCertificate tlsCertificate;
var tcpVirtualNodeListenerOptions = new TcpVirtualNodeListenerOptions {
ConnectionPool = new TcpConnectionPool {
MaxConnections = 123
},
HealthCheck = healthCheck,
OutlierDetection = new OutlierDetection {
BaseEjectionDuration = Duration.Minutes(30),
Interval = Duration.Minutes(30),
MaxEjectionPercent = 123,
MaxServerErrors = 123
},
Port = 123,
Timeout = new TcpTimeout {
Idle = Duration.Minutes(30)
},
Tls = new ListenerTlsOptions {
Certificate = tlsCertificate,
Mode = TlsMode.STRICT,
// the properties below are optional
MutualTlsValidation = new MutualTlsValidation {
Trust = mutualTlsValidationTrust,
// the properties below are optional
SubjectAlternativeNames = subjectAlternativeNames
}
}
};
Synopsis
Constructors
TcpVirtualNodeListenerOptions() |
Properties
ConnectionPool | Connection pool for http listeners. |
HealthCheck | The health check information for the listener. |
OutlierDetection | Represents the configuration for enabling outlier detection. |
Port | Port to listen for connections on. |
Timeout | Timeout for TCP protocol. |
Tls | Represents the configuration for enabling TLS on a listener. |
Constructors
TcpVirtualNodeListenerOptions()
public TcpVirtualNodeListenerOptions()
Properties
ConnectionPool
Connection pool for http listeners.
public ITcpConnectionPool ConnectionPool { get; set; }
Property Value
Remarks
Default: - None
HealthCheck
The health check information for the listener.
public HealthCheck HealthCheck { get; set; }
Property Value
Remarks
Default: - no healthcheck
OutlierDetection
Represents the configuration for enabling outlier detection.
public IOutlierDetection OutlierDetection { get; set; }
Property Value
Remarks
Default: - none
Port
Port to listen for connections on.
public Nullable<double> Port { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - 8080
Timeout
Timeout for TCP protocol.
public ITcpTimeout Timeout { get; set; }
Property Value
Remarks
Default: - None
Tls
Represents the configuration for enabling TLS on a listener.
public IListenerTlsOptions Tls { get; set; }
Property Value
Remarks
Default: - none