Skip to content
v2.274.0

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.
portnumberportint | floatportNumberPortdoublePort*float64= 8080#
Port to listen for connections on.
timeoutHttpTimeouttimeoutHttpTimeouttimeoutHttpTimeoutTimeoutHttpTimeoutTimeoutHttpTimeout= None#
Timeout for HTTP protocol.
Represents the configuration for enabling TLS on a listener.