Class HealthCheck.Jsii$Proxy
java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.ecs.HealthCheck.Jsii$Proxy
- All Implemented Interfaces:
HealthCheck
,software.amazon.jsii.JsiiSerializable
- Enclosing interface:
- HealthCheck
@Stability(Stable)
@Internal
public static final class HealthCheck.Jsii$Proxy
extends software.amazon.jsii.JsiiObject
implements HealthCheck
An implementation for
HealthCheck
-
Nested Class Summary
Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.amazon.awscdk.services.ecs.HealthCheck
HealthCheck.Builder, HealthCheck.Jsii$Proxy
-
Constructor Summary
ModifierConstructorDescriptionprotected
Jsii$Proxy
(HealthCheck.Builder builder) Constructor that initializes the object based on literal property values passed by theHealthCheck.Builder
.protected
Jsii$Proxy
(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject. -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
final boolean
A string array representing the command that the container runs to determine if it is healthy.final Duration
The time period in seconds between each health check execution.final Number
The number of times to retry a failed health check before the container is considered unhealthy.final Duration
The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries.final Duration
The time period in seconds to wait for a health check to succeed before it is considered a failure.final int
hashCode()
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
-
Constructor Details
-
Jsii$Proxy
protected Jsii$Proxy(software.amazon.jsii.JsiiObjectRef objRef) Constructor that initializes the object based on values retrieved from the JsiiObject.- Parameters:
objRef
- Reference to the JSII managed object.
-
Jsii$Proxy
Constructor that initializes the object based on literal property values passed by theHealthCheck.Builder
.
-
-
Method Details
-
getCommand
Description copied from interface:HealthCheck
A string array representing the command that the container runs to determine if it is healthy.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" ]
- Specified by:
getCommand
in interfaceHealthCheck
-
getInterval
Description copied from interface:HealthCheck
The time period in seconds between each health check execution.You may specify between 5 and 300 seconds.
Default: Duration.seconds(30)
- Specified by:
getInterval
in interfaceHealthCheck
-
getRetries
Description copied from interface:HealthCheck
The number of times to retry a failed health check before the container is considered unhealthy.You may specify between 1 and 10 retries.
Default: 3
- Specified by:
getRetries
in interfaceHealthCheck
-
getStartPeriod
Description copied from interface:HealthCheck
The optional grace period within which to provide containers time to bootstrap before failed health checks count towards the maximum number of retries.You may specify between 0 and 300 seconds.
Default: No start period
- Specified by:
getStartPeriod
in interfaceHealthCheck
-
getTimeout
Description copied from interface:HealthCheck
The time period in seconds to wait for a health check to succeed before it is considered a failure.You may specify between 2 and 60 seconds.
Default: Duration.seconds(5)
- Specified by:
getTimeout
in interfaceHealthCheck
-
$jsii$toJson
@Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()- Specified by:
$jsii$toJson
in interfacesoftware.amazon.jsii.JsiiSerializable
-
equals
-
hashCode
public final int hashCode()
-