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

    Constructors
    Modifier
    Constructor
    Description
    protected
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    com.fasterxml.jackson.databind.JsonNode
     
    final boolean
     
    final List<String>
    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
     

    Methods inherited from class software.amazon.jsii.JsiiObject

    jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • 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

      protected Jsii$Proxy(HealthCheck.Builder builder)
      Constructor that initializes the object based on literal property values passed by the HealthCheck.Builder.
  • Method Details

    • getCommand

      public final List<String> 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 interface HealthCheck
    • getInterval

      public final Duration 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 interface HealthCheck
    • getRetries

      public final Number 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 interface HealthCheck
    • getStartPeriod

      public final Duration 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 interface HealthCheck
    • getTimeout

      public final Duration 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 interface HealthCheck
    • $jsii$toJson

      @Internal public com.fasterxml.jackson.databind.JsonNode $jsii$toJson()
      Specified by:
      $jsii$toJson in interface software.amazon.jsii.JsiiSerializable
    • equals

      public final boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public final int hashCode()
      Overrides:
      hashCode in class Object