Interface IHttpVirtualNodeListenerOptions
Represent the HTTP Node Listener property.
Namespace: Amazon.CDK.AWS.AppMesh
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IHttpVirtualNodeListenerOptions
Syntax (vb)
Public Interface IHttpVirtualNodeListenerOptions
Remarks
ExampleMetadata: infused
Examples
Mesh mesh;
var vpc = new Vpc(this, "vpc");
var namespace = new PrivateDnsNamespace(this, "test-namespace", new PrivateDnsNamespaceProps {
Vpc = vpc,
Name = "domain.local"
});
var service = namespace.CreateService("Svc");
var node = mesh.AddVirtualNode("virtual-node", new VirtualNodeBaseProps {
ServiceDiscovery = ServiceDiscovery.CloudMap(service),
Listeners = new [] { VirtualNodeListener.Http(new HttpVirtualNodeListenerOptions {
Port = 8081,
HealthCheck = HealthCheck.Http(new HttpHealthCheckOptions {
HealthyThreshold = 3,
Interval = Duration.Seconds(5), // minimum
Path = "/health-check-path",
Timeout = Duration.Seconds(2), // minimum
UnhealthyThreshold = 2
})
}) },
AccessLog = AccessLog.FromFilePath("/dev/stdout")
});
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 HTTP protocol. |
Tls | Represents the configuration for enabling TLS on a listener. |
Properties
ConnectionPool
Connection pool for http listeners.
virtual IHttpConnectionPool 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 HTTP protocol.
virtual IHttpTimeout 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