@Stability(value=Experimental) @Internal public static final class HealthCheck.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements HealthCheck
HealthCheck
software.amazon.jsii.JsiiObject.InitializationMode
HealthCheck.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, jsiiStaticSet
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
builder
protected 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()
HealthCheck
getPort
in interface HealthCheck
public final Number getHealthyThreshold()
HealthCheck
Default: 2
getHealthyThreshold
in interface HealthCheck
public final Duration getInterval()
HealthCheck
Default: Duration.seconds(30)
getInterval
in interface HealthCheck
public final String getPath()
HealthCheck
For SSL and TCP health checks, accepting connections is enough to be considered healthy.
Default: "/"
getPath
in interface HealthCheck
public final LoadBalancingProtocol getProtocol()
HealthCheck
The protocol is automatically determined from the port if it's not supplied.
Default: Automatic
getProtocol
in interface HealthCheck
public final Duration getTimeout()
HealthCheck
Default: Duration.seconds(5)
getTimeout
in interface HealthCheck
public final Number getUnhealthyThreshold()
HealthCheck
Default: 5
getUnhealthyThreshold
in interface HealthCheck
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson
in interface software.amazon.jsii.JsiiSerializable
Copyright © 2021. All rights reserved.