@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-14T16:25:34.345Z")
public abstract class HealthCheck
extends software.amazon.jsii.JsiiObject
Example:
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 | Constructor and Description |
---|---|
protected |
HealthCheck() |
protected |
HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HealthCheck(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
abstract HealthCheckConfig |
bind(Construct scope,
HealthCheckBindOptions options)
Called when the AccessLog type is initialized.
|
static HealthCheck |
grpc()
Construct a GRPC health check.
|
static HealthCheck |
grpc(GrpcHealthCheckOptions options)
Construct a GRPC health check.
|
static HealthCheck |
http()
Construct a HTTP health check.
|
static HealthCheck |
http(HttpHealthCheckOptions options)
Construct a HTTP health check.
|
static HealthCheck |
http2()
Construct a HTTP2 health check.
|
static HealthCheck |
http2(HttpHealthCheckOptions options)
Construct a HTTP2 health check.
|
static HealthCheck |
tcp()
Construct a TCP health check.
|
static HealthCheck |
tcp(TcpHealthCheckOptions options)
Construct a TCP health check.
|
protected HealthCheck(software.amazon.jsii.JsiiObjectRef objRef)
protected HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
protected HealthCheck()
public static HealthCheck grpc(GrpcHealthCheckOptions options)
options
- public static HealthCheck grpc()
public static HealthCheck http(HttpHealthCheckOptions options)
options
- public static HealthCheck http()
public static HealthCheck http2(HttpHealthCheckOptions options)
options
- public static HealthCheck http2()
public static HealthCheck tcp(TcpHealthCheckOptions options)
options
- public static HealthCheck tcp()
public abstract HealthCheckConfig bind(Construct scope, HealthCheckBindOptions options)
Can be used to enforce mutual exclusivity with future properties
scope
- This parameter is required.options
- This parameter is required.