Interface ITcpVirtualNodeListenerOptions
Represent the TCP Node Listener prorperty.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.AWS.AppMesh.dll
Syntax (csharp)
public interface ITcpVirtualNodeListenerOptions
Syntax (vb)
Public Interface 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.AWS.AppMesh;
using Amazon.CDK;
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
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. |
Properties
ConnectionPool
Connection pool for http listeners.
virtual ITcpConnectionPool ConnectionPool { get; }
Property Value
Remarks
Default: - None
HealthCheck
The health check information for the listener.
virtual HealthCheck HealthCheck { get; }
Property Value
Remarks
Default: - no healthcheck
OutlierDetection
Represents the configuration for enabling outlier detection.
virtual IOutlierDetection OutlierDetection { get; }
Property Value
Remarks
Default: - none
Port
Port to listen for connections on.
virtual Nullable<double> Port { get; }
Property Value
System.Nullable<System.Double>
Remarks
Default: - 8080
Timeout
Timeout for TCP protocol.
virtual ITcpTimeout Timeout { get; }
Property Value
Remarks
Default: - None
Tls
Represents the configuration for enabling TLS on a listener.
virtual IListenerTlsOptions Tls { get; }
Property Value
Remarks
Default: - none