@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.538Z") @Stability(value=Stable) public abstract class HealthCheck extends software.amazon.jsii.JsiiObject
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 | 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(software.constructs.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.
|
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected HealthCheck(software.amazon.jsii.JsiiObjectRef objRef)
protected HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) protected HealthCheck()
@Stability(value=Stable) @NotNull public static HealthCheck grpc(@Nullable GrpcHealthCheckOptions options)
options - @Stability(value=Stable) @NotNull public static HealthCheck grpc()
@Stability(value=Stable) @NotNull public static HealthCheck http(@Nullable HttpHealthCheckOptions options)
options - @Stability(value=Stable) @NotNull public static HealthCheck http()
@Stability(value=Stable) @NotNull public static HealthCheck http2(@Nullable HttpHealthCheckOptions options)
options - @Stability(value=Stable) @NotNull public static HealthCheck http2()
@Stability(value=Stable) @NotNull public static HealthCheck tcp(@Nullable TcpHealthCheckOptions options)
options - @Stability(value=Stable) @NotNull public static HealthCheck tcp()
@Stability(value=Stable) @NotNull public abstract HealthCheckConfig bind(@NotNull software.constructs.Construct scope, @NotNull HealthCheckBindOptions options)
Can be used to enforce mutual exclusivity with future properties
scope - This parameter is required.options - This parameter is required.Copyright © 2022. All rights reserved.