aws-cdk-lib.aws_appmesh.HttpVirtualNodeListenerOptions

interface HttpVirtualNodeListenerOptions

LanguageType name
.NETAmazon.CDK.AWS.AppMesh.HttpVirtualNodeListenerOptions
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsappmesh#HttpVirtualNodeListenerOptions
Javasoftware.amazon.awscdk.services.appmesh.HttpVirtualNodeListenerOptions
Pythonaws_cdk.aws_appmesh.HttpVirtualNodeListenerOptions
TypeScript (source)aws-cdk-lib » aws_appmesh » HttpVirtualNodeListenerOptions

Represent the HTTP Node Listener property.

Example

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

NameTypeDescription
connectionPool?HttpConnectionPoolConnection pool for http listeners.
healthCheck?HealthCheckThe health check information for the listener.
outlierDetection?OutlierDetectionRepresents the configuration for enabling outlier detection.
port?numberPort to listen for connections on.
timeout?HttpTimeoutTimeout for HTTP protocol.
tls?ListenerTlsOptionsRepresents the configuration for enabling TLS on a listener.

connectionPool?

Type: HttpConnectionPool (optional, default: None)

Connection pool for http listeners.


healthCheck?

Type: HealthCheck (optional, default: no healthcheck)

The health check information for the listener.


outlierDetection?

Type: OutlierDetection (optional, default: none)

Represents the configuration for enabling outlier detection.


port?

Type: number (optional, default: 8080)

Port to listen for connections on.


timeout?

Type: HttpTimeout (optional, default: None)

Timeout for HTTP protocol.


tls?

Type: ListenerTlsOptions (optional, default: none)

Represents the configuration for enabling TLS on a listener.