# HttpGatewayListenerOptions

Represents the properties needed to define HTTP Listeners for a VirtualGateway.

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

## Example

```ts
declare const mesh: appmesh.Mesh;
const certificateAuthorityArn = 'arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012';

const gateway = new appmesh.VirtualGateway(this, 'gateway', {
  mesh: mesh,
  listeners: [appmesh.VirtualGatewayListener.http({
    port: 443,
    healthCheck: appmesh.HealthCheck.http({
      interval: Duration.seconds(10),
    }),
  })],
  backendDefaults: {
    tlsClientPolicy: {
      ports: [8080, 8081],
      validation: {
        trust: appmesh.TlsValidationTrust.acm([
          acmpca.CertificateAuthority.fromCertificateAuthorityArn(this, 'certificate', certificateAuthorityArn)]),
      },
    },
  },
  accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
  virtualGatewayName: 'virtualGateway',
});
```

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

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

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