@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.557Z") @Stability(value=Stable) public interface HttpVirtualNodeListenerOptions extends software.amazon.jsii.JsiiSerializable
Example:
// Example automatically generated from non-compiling source. May contain errors.
Mesh mesh;
Vpc vpc = new Vpc(this, "vpc");
PrivateDnsNamespace namespace = PrivateDnsNamespace.Builder.create(this, "test-namespace")
.vpc(vpc)
.name("domain.local")
.build();
Service service = namespace.createService("Svc");
VirtualNode node = mesh.addVirtualNode("virtual-node", VirtualNodeBaseProps.builder()
.serviceDiscovery(ServiceDiscovery.cloudMap(service))
.listeners(List.of(VirtualNodeListener.http(HttpVirtualNodeListenerOptions.builder()
.port(8081)
.healthCheck(HealthCheck.http(HttpHealthCheckOptions.builder()
.healthyThreshold(3)
.interval(Duration.seconds(5)) // minimum
.path("/health-check-path")
.timeout(Duration.seconds(2)) // minimum
.unhealthyThreshold(2)
.build()))
.build())))
.accessLog(AccessLog.fromFilePath("/dev/stdout"))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
HttpVirtualNodeListenerOptions.Builder
A builder for
HttpVirtualNodeListenerOptions |
static class |
HttpVirtualNodeListenerOptions.Jsii$Proxy
An implementation for
HttpVirtualNodeListenerOptions |
| Modifier and Type | Method and Description |
|---|---|
static HttpVirtualNodeListenerOptions.Builder |
builder() |
default HttpConnectionPool |
getConnectionPool()
Connection pool for http listeners.
|
default HealthCheck |
getHealthCheck()
The health check information for the listener.
|
default OutlierDetection |
getOutlierDetection()
Represents the configuration for enabling outlier detection.
|
default Number |
getPort()
Port to listen for connections on.
|
default HttpTimeout |
getTimeout()
Timeout for HTTP protocol.
|
default ListenerTlsOptions |
getTls()
Represents the configuration for enabling TLS on a listener.
|
@Stability(value=Stable) @Nullable default HttpConnectionPool getConnectionPool()
Default: - None
@Stability(value=Stable) @Nullable default HealthCheck getHealthCheck()
Default: - no healthcheck
@Stability(value=Stable) @Nullable default OutlierDetection getOutlierDetection()
Default: - none
@Stability(value=Stable) @Nullable default Number getPort()
Default: - 8080
@Stability(value=Stable) @Nullable default HttpTimeout getTimeout()
Default: - None
@Stability(value=Stable) @Nullable default ListenerTlsOptions getTls()
Default: - none
@Stability(value=Stable) static HttpVirtualNodeListenerOptions.Builder builder()
Copyright © 2022. All rights reserved.