@Generated(value="jsii-pacmak/1.30.0 (build adae23f)", date="2021-06-30T10:01:08.212Z") @Stability(value=Experimental) public interface HealthCheck extends software.amazon.jsii.JsiiSerializable
| Modifier and Type | Interface and Description |
|---|---|
static class |
HealthCheck.Builder
A builder for
HealthCheck |
static class |
HealthCheck.Jsii$Proxy
An implementation for
HealthCheck |
| Modifier and Type | Method and Description |
|---|---|
static HealthCheck.Builder |
builder() |
default Number |
getHealthyThreshold()
(experimental) After how many successful checks is an instance considered healthy.
|
default Duration |
getInterval()
(experimental) Number of seconds between health checks.
|
default String |
getPath()
(experimental) What path to use for HTTP or HTTPS health check (must return 200).
|
Number |
getPort()
(experimental) What port number to health check on.
|
default LoadBalancingProtocol |
getProtocol()
(experimental) What protocol to use for health checking.
|
default Duration |
getTimeout()
(experimental) Health check timeout.
|
default Number |
getUnhealthyThreshold()
(experimental) After how many unsuccessful checks is an instance considered unhealthy.
|
@Stability(value=Experimental) @NotNull Number getPort()
@Stability(value=Experimental) @Nullable default Number getHealthyThreshold()
Default: 2
@Stability(value=Experimental) @Nullable default Duration getInterval()
Default: Duration.seconds(30)
@Stability(value=Experimental) @Nullable default String getPath()
For SSL and TCP health checks, accepting connections is enough to be considered healthy.
Default: "/"
@Stability(value=Experimental) @Nullable default LoadBalancingProtocol getProtocol()
The protocol is automatically determined from the port if it's not supplied.
Default: Automatic
@Stability(value=Experimental) @Nullable default Duration getTimeout()
Default: Duration.seconds(5)
@Stability(value=Experimental) @Nullable default Number getUnhealthyThreshold()
Default: 5
@Stability(value=Experimental) static HealthCheck.Builder builder()
HealthCheck.Builder of HealthCheckCopyright © 2021. All rights reserved.