Show / Hide Table of Contents

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.

IHttpConnectionPool? ConnectionPool { get; }
Property Value

IHttpConnectionPool

Remarks

Default: - None

HealthCheck

The health check information for the listener.

HealthCheck? HealthCheck { get; }
Property Value

HealthCheck

Remarks

Default: - no healthcheck

OutlierDetection

Represents the configuration for enabling outlier detection.

IOutlierDetection? OutlierDetection { get; }
Property Value

IOutlierDetection

Remarks

Default: - none

Port

Port to listen for connections on.

double? Port { get; }
Property Value

double?

Remarks

Default: - 8080

Timeout

Timeout for HTTP protocol.

IHttpTimeout? Timeout { get; }
Property Value

IHttpTimeout

Remarks

Default: - None

Tls

Represents the configuration for enabling TLS on a listener.

IListenerTlsOptions? Tls { get; }
Property Value

IListenerTlsOptions

Remarks

Default: - none

Back to top Generated by DocFX