@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(List<String> command,
Duration interval,
Number retries,
Duration startPeriod,
Duration timeout)
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) |
List<String> |
getCommand()
(experimental) A string array representing the command that the container runs to determine if it is healthy.
|
Duration |
getInterval()
(experimental) The time period in seconds between each health check execution.
|
Number |
getRetries()
(experimental) The number of times to retry a failed health check before the container is considered unhealthy.
|
Duration |
getStartPeriod()
(experimental) The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries.
|
Duration |
getTimeout()
(experimental) The time period in seconds to wait for a health check to succeed before it is considered a failure.
|
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.public final List<String> getCommand()
HealthCheckThe string array must start with CMD to execute the command arguments directly, or CMD-SHELL to run the command with the container's default shell.
For example: [ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ]
getCommand in interface HealthCheckpublic final Duration getInterval()
HealthCheckYou may specify between 5 and 300 seconds.
Default: Duration.seconds(30)
getInterval in interface HealthCheckpublic final Number getRetries()
HealthCheckYou may specify between 1 and 10 retries.
Default: 3
getRetries in interface HealthCheckpublic final Duration getStartPeriod()
HealthCheckYou may specify between 0 and 300 seconds.
Default: No start period
getStartPeriod in interface HealthCheckpublic final Duration getTimeout()
HealthCheckYou may specify between 2 and 60 seconds.
Default: Duration.seconds(5)
getTimeout in interface HealthCheck@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2021. All rights reserved.