@Generated(value="jsii-pacmak/1.29.0 (build 41df200)", date="2021-06-02T09:55:17.251Z") @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() |
List<String> |
getCommand()
(experimental) A string array representing the command that the container runs to determine if it is healthy.
|
default Duration |
getInterval()
(experimental) The time period in seconds between each health check execution.
|
default Number |
getRetries()
(experimental) The number of times to retry a failed health check before the container is considered unhealthy.
|
default 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.
|
default Duration |
getTimeout()
(experimental) The time period in seconds to wait for a health check to succeed before it is considered a failure.
|
@Stability(value=Experimental) @NotNull List<String> getCommand()
The 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" ]
@Stability(value=Experimental) @Nullable default Duration getInterval()
You may specify between 5 and 300 seconds.
Default: Duration.seconds(30)
@Stability(value=Experimental) @Nullable default Number getRetries()
You may specify between 1 and 10 retries.
Default: 3
@Stability(value=Experimental) @Nullable default Duration getStartPeriod()
You may specify between 0 and 300 seconds.
Default: No start period
@Stability(value=Experimental) @Nullable default Duration getTimeout()
You may specify between 2 and 60 seconds.
Default: Duration.seconds(5)
@Stability(value=Experimental) static HealthCheck.Builder builder()
HealthCheck.Builder of HealthCheckCopyright © 2021. All rights reserved.