@Stability(value=Stable) @Internal public static final class CfnTaskDefinition.HealthCheckProperty.Jsii$Proxy extends software.amazon.jsii.JsiiObject implements CfnTaskDefinition.HealthCheckProperty
CfnTaskDefinition.HealthCheckPropertysoftware.amazon.jsii.JsiiObject.InitializationModeCfnTaskDefinition.HealthCheckProperty.Builder, CfnTaskDefinition.HealthCheckProperty.Jsii$Proxy| Modifier | Constructor and Description |
|---|---|
protected |
Jsii$Proxy(CfnTaskDefinition.HealthCheckProperty.Builder builder)
Constructor that initializes the object based on literal property values passed by the
CfnTaskDefinition.AuthorizationConfigProperty.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) |
List<String> |
getCommand()
A string array representing the command that the container runs to determine if it is healthy.
|
Number |
getInterval()
The time period in seconds between each health check execution.
|
Number |
getRetries()
The number of times to retry a failed health check before the container is considered unhealthy.
|
Number |
getStartPeriod()
The optional grace period to provide containers time to bootstrap before failed health checks count towards the maximum number of retries.
|
Number |
getTimeout()
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.protected Jsii$Proxy(CfnTaskDefinition.HealthCheckProperty.Builder builder)
CfnTaskDefinition.AuthorizationConfigProperty.Builder.public final List<String> getCommand()
CfnTaskDefinition.HealthCheckProperty
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.
When you use the AWS Management Console JSON panel, the AWS Command Line Interface , or the APIs, enclose the list of commands in brackets.
[ "CMD-SHELL", "curl -f http://localhost/ || exit 1" ]
You don't need to include the brackets when you use the AWS Management Console.
"CMD-SHELL", "curl -f http://localhost/ || exit 1"
An exit code of 0 indicates success, and non-zero exit code indicates failure. For more information, see HealthCheck in the Create a container section of the Docker Remote API .
getCommand in interface CfnTaskDefinition.HealthCheckPropertypublic final Number getInterval()
CfnTaskDefinition.HealthCheckPropertyYou may specify between 5 and 300 seconds. The default value is 30 seconds.
getInterval in interface CfnTaskDefinition.HealthCheckPropertypublic final Number getRetries()
CfnTaskDefinition.HealthCheckPropertyYou may specify between 1 and 10 retries. The default value is 3.
getRetries in interface CfnTaskDefinition.HealthCheckPropertypublic final Number getStartPeriod()
CfnTaskDefinition.HealthCheckProperty
You can specify between 0 and 300 seconds. By default, the startPeriod is disabled.
If a health check succeeds within the
startPeriod, then the container is considered healthy and any subsequent failures count toward the maximum number of retries.
getStartPeriod in interface CfnTaskDefinition.HealthCheckPropertypublic final Number getTimeout()
CfnTaskDefinition.HealthCheckPropertyYou may specify between 2 and 60 seconds. The default value is 5.
getTimeout in interface CfnTaskDefinition.HealthCheckProperty@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
$jsii$toJson in interface software.amazon.jsii.JsiiSerializableCopyright © 2022. All rights reserved.