HttpVirtualNodeListenerOptions Struct
Represent the HTTP Node Listener property.
Example
ts
const vpc = new ec2.Vpc(this, 'vpc');
const namespace = new cloudmap.PrivateDnsNamespace(this, 'test-namespace', {
vpc,
name: 'domain.local',
});
const service = namespace.createService('Svc');
declare const mesh: appmesh.Mesh;
const node = mesh.addVirtualNode('virtual-node', {
serviceDiscovery: appmesh.ServiceDiscovery.cloudMap(service),
listeners: [appmesh.VirtualNodeListener.http({
port: 8081,
healthCheck: appmesh.HealthCheck.http({
healthyThreshold: 3,
interval: Duration.seconds(5), // minimum
path: '/health-check-path',
timeout: Duration.seconds(2), // minimum
unhealthyThreshold: 2,
}),
})],
accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
});
Properties
connectionPoolHttpConnectionPoolconnection_poolHttpConnectionPoolconnectionPoolHttpConnectionPoolConnectionPoolHttpConnectionPoolConnectionPoolHttpConnectionPool= None#Connection pool for http listeners.
healthCheckHealthCheckhealth_checkHealthCheckhealthCheckHealthCheckHealthCheckHealthCheckHealthCheckHealthCheck= no healthcheck#The health check information for the listener.
outlierDetectionOutlierDetectionoutlier_detectionOutlierDetectionoutlierDetectionOutlierDetectionOutlierDetectionOutlierDetectionOutlierDetectionOutlierDetection= none#Represents the configuration for enabling outlier detection.
Port to listen for connections on.
Timeout for HTTP protocol.
tlsListenerTlsOptionstlsListenerTlsOptionstlsListenerTlsOptionsTlsListenerTlsOptionsTlsListenerTlsOptions= none#Represents the configuration for enabling TLS on a listener.