@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(Boolean enabled,
String healthyGrpcCodes,
String healthyHttpCodes,
Number healthyThresholdCount,
Duration interval,
String path,
String port,
Protocol protocol,
Duration timeout,
Number unhealthyThresholdCount)
Constructor that initializes the object based on literal property values passed by the
HealthCheck.Builder. |
protected |
Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef)
Constructor that initializes the object based on values retrieved from the JsiiObject.
|
| Modifier and Type | Method and Description |
|---|---|
com.fasterxml.jackson.databind.JsonNode |
$jsii$toJson() |
boolean |
equals(Object o) |
Boolean |
getEnabled()
(experimental) Indicates whether health checks are enabled.
|
String |
getHealthyGrpcCodes()
(experimental) GRPC code to use when checking for a successful response from a target.
|
String |
getHealthyHttpCodes()
(experimental) HTTP code to use when checking for a successful response from a target.
|
Number |
getHealthyThresholdCount()
(experimental) The number of consecutive health checks successes required before considering an unhealthy target healthy.
|
Duration |
getInterval()
(experimental) The approximate number of seconds between health checks for an individual target.
|
String |
getPath()
(experimental) The ping path destination where Elastic Load Balancing sends health check requests.
|
String |
getPort()
(experimental) The port that the load balancer uses when performing health checks on the targets.
|
Protocol |
getProtocol()
(experimental) The protocol the load balancer uses when performing health checks on targets.
|
Duration |
getTimeout()
(experimental) The amount of time, in seconds, during which no response from a target means a failed health check.
|
Number |
getUnhealthyThresholdCount()
(experimental) The number of consecutive health check failures required before considering a target 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(Boolean enabled, String healthyGrpcCodes, String healthyHttpCodes, Number healthyThresholdCount, Duration interval, String path, String port, Protocol protocol, Duration timeout, Number unhealthyThresholdCount)
HealthCheck.Builder.public final Boolean getEnabled()
HealthCheckIf the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance or ip, health checks are always enabled and cannot be disabled.
Default: - Determined automatically.
getEnabled in interface HealthCheckpublic final String getHealthyGrpcCodes()
HealthCheckYou can specify values between 0 and 99. You can specify multiple values (for example, "0,1") or a range of values (for example, "0-5").
Default: - 12
getHealthyGrpcCodes in interface HealthCheckpublic final String getHealthyHttpCodes()
HealthCheckFor Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299").
getHealthyHttpCodes in interface HealthCheckpublic final Number getHealthyThresholdCount()
HealthCheckFor Application Load Balancers, the default is 5. For Network Load Balancers, the default is 3.
Default: 5 for ALBs, 3 for NLBs
getHealthyThresholdCount in interface HealthCheckpublic final Duration getInterval()
HealthCheckDefault: Duration.seconds(30)
getInterval in interface HealthCheckpublic final String getPath()
HealthCheckDefault: /
getPath in interface HealthCheckpublic final String getPort()
HealthCheckDefault: 'traffic-port'
getPort in interface HealthCheckpublic final Protocol getProtocol()
HealthCheckThe TCP protocol is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The TLS, UDP, and TCP_UDP protocols are not supported for health checks.
Default: HTTP for ALBs, TCP for NLBs
getProtocol in interface HealthCheckpublic final Duration getTimeout()
HealthCheckFor Application Load Balancers, the range is 2-60 seconds and the default is 5 seconds. For Network Load Balancers, this is 10 seconds for TCP and HTTPS health checks and 6 seconds for HTTP health checks.
Default: Duration.seconds(5) for ALBs, Duration.seconds(10) or Duration.seconds(6) for NLBs
getTimeout in interface HealthCheckpublic final Number getUnhealthyThresholdCount()
HealthCheckFor Application Load Balancers, the default is 2. For Network Load Balancers, this value must be the same as the healthy threshold count.
Default: 2
getUnhealthyThresholdCount in interface HealthCheck@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.