@Stability(value=Experimental) @Internal public static final class HealthCheck.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HealthCheck
HealthChecksoftware.amazon.jsii.JsiiObject.InitializationModeHealthCheck.Builder, HealthCheck.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
protected |
Jsii$Proxy(Number port,
Number healthyThreshold,
Duration interval,
String path,
LoadBalancingProtocol protocol,
Duration timeout,
Number unhealthyThreshold)
Constructor that initializes the object based on literal property values passed by the
HealthCheck.Builder. |
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Number |
getHealthyThreshold()
(experimental) After how many successful checks is an instance considered healthy.
|
Duration |
getInterval()
(experimental) Number of seconds between health checks.
|
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.
|
LoadBalancingProtocol |
getProtocol()
(experimental) What protocol to use for health checking.
|
Duration |
getTimeout()
(experimental) Health check timeout.
|
Number |
getUnhealthyThreshold()
(experimental) After how many unsuccessful checks is an instance considered unhealthy.
|
int |
hashCode() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetclone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitbuilderprotected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
objRef - Reference to the JSII managed object.protected Jsii$Proxy(Number port, Number healthyThreshold, Duration interval, String path, LoadBalancingProtocol protocol, Duration timeout, Number unhealthyThreshold)
HealthCheck.Builder.public final Number getPort()
HealthCheckgetPort in interface HealthCheckpublic final Number getHealthyThreshold()
HealthCheckDefault: 2
getHealthyThreshold in interface HealthCheckpublic final Duration getInterval()
HealthCheckDefault: Duration.seconds(30)
getInterval in interface HealthCheckpublic final String getPath()
HealthCheckFor SSL and TCP health checks, accepting connections is enough to be considered healthy.
Default: "/"
getPath in interface HealthCheckpublic final LoadBalancingProtocol getProtocol()
HealthCheckThe protocol is automatically determined from the port if it's not supplied.
Default: Automatic
getProtocol in interface HealthCheckpublic final Duration getTimeout()
HealthCheckDefault: Duration.seconds(5)
getTimeout in interface HealthCheckpublic final Number getUnhealthyThreshold()
HealthCheckDefault: 5
getUnhealthyThreshold in interface HealthCheck@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.