# HttpVirtualNodeListenerOptions

Represent the HTTP Node Listener property.

- Source: [`aws-appmesh/lib/virtual-node-listener.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0/packages/aws-cdk-lib/aws-appmesh/lib/virtual-node-listener.ts#L68)

## 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

- `connectionPool`: [HttpConnectionPool](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.HttpConnectionPool.html) = None — Connection pool for http listeners.

- `healthCheck`: [HealthCheck](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.HealthCheck.html) — The health check information for the listener.

  **Default:** no healthcheck

- `outlierDetection`: [OutlierDetection](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.OutlierDetection.html) = none — Represents the configuration for enabling outlier detection.

- `port`: number = 8080 — Port to listen for connections on.

- `timeout`: [HttpTimeout](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.HttpTimeout.html) = None — Timeout for HTTP protocol.

- `tls`: [ListenerTlsOptions](/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.ListenerTlsOptions.html) = none — Represents the configuration for enabling TLS on a listener.
