interface HttpVirtualNodeListenerOptions
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppMesh.HttpVirtualNodeListenerOptions |
Java | software.amazon.awscdk.services.appmesh.HttpVirtualNodeListenerOptions |
Python | aws_cdk.aws_appmesh.HttpVirtualNodeListenerOptions |
TypeScript (source) | @aws-cdk/aws-appmesh » HttpVirtualNodeListenerOptions |
Represent the HTTP Node Listener prorperty.
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: cdk.Duration.seconds(5), // minimum
path: '/health-check-path',
timeout: cdk.Duration.seconds(2), // minimum
unhealthyThreshold: 2,
}),
})],
accessLog: appmesh.AccessLog.fromFilePath('/dev/stdout'),
});
Properties
Name | Type | Description |
---|---|---|
connection | Http | Connection pool for http listeners. |
health | Health | The health check information for the listener. |
outlier | Outlier | Represents the configuration for enabling outlier detection. |
port? | number | Port to listen for connections on. |
timeout? | Http | Timeout for HTTP protocol. |
tls? | Listener | Represents the configuration for enabling TLS on a listener. |
connectionPool?
Type:
Http
(optional, default: None)
Connection pool for http listeners.
healthCheck?
Type:
Health
(optional, default: no healthcheck)
The health check information for the listener.
outlierDetection?
Type:
Outlier
(optional, default: none)
Represents the configuration for enabling outlier detection.
port?
Type:
number
(optional, default: 8080)
Port to listen for connections on.
timeout?
Type:
Http
(optional, default: None)
Timeout for HTTP protocol.
tls?
Type:
Listener
(optional, default: none)
Represents the configuration for enabling TLS on a listener.