Class HealthCheck.Jsii$Proxy

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.elasticloadbalancingv2.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.elasticloadbalancingv2.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 Boolean
    Indicates whether health checks are enabled.
    final String
    GRPC code to use when checking for a successful response from a target.
    final String
    HTTP code to use when checking for a successful response from a target.
    final Number
    The number of consecutive health checks successes required before considering an unhealthy target healthy.
    final Duration
    The approximate number of seconds between health checks for an individual target.
    final String
    The ping path destination where Elastic Load Balancing sends health check requests.
    final String
    The port that the load balancer uses when performing health checks on the targets.
    final Protocol
    The protocol the load balancer uses when performing health checks on targets.
    final Duration
    The amount of time, in seconds, during which no response from a target means a failed health check.
    final Number
    The number of consecutive health check failures required before considering a target unhealthy.
    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

    • getEnabled

      public final Boolean getEnabled()
      Description copied from interface: HealthCheck
      Indicates whether health checks are enabled.

      If the target type is lambda, health checks are disabled by default but can be enabled. If the target type is instance or ip, health checks are always enabled and cannot be disabled.

      Default: - Determined automatically.

      Specified by:
      getEnabled in interface HealthCheck
    • getHealthyGrpcCodes

      public final String getHealthyGrpcCodes()
      Description copied from interface: HealthCheck
      GRPC code to use when checking for a successful response from a target.

      You can specify values between 0 and 99. You can specify multiple values (for example, "0,1") or a range of values (for example, "0-5").

      Default: - 12

      Specified by:
      getHealthyGrpcCodes in interface HealthCheck
    • getHealthyHttpCodes

      public final String getHealthyHttpCodes()
      Description copied from interface: HealthCheck
      HTTP code to use when checking for a successful response from a target.

      For Application Load Balancers, you can specify values between 200 and 499, and the default value is 200. You can specify multiple values (for example, "200,202") or a range of values (for example, "200-299").

      Specified by:
      getHealthyHttpCodes in interface HealthCheck
    • getHealthyThresholdCount

      public final Number getHealthyThresholdCount()
      Description copied from interface: HealthCheck
      The number of consecutive health checks successes required before considering an unhealthy target healthy.

      For Application Load Balancers, the default is 5. For Network Load Balancers, the default is 3.

      Default: 5 for ALBs, 3 for NLBs

      Specified by:
      getHealthyThresholdCount in interface HealthCheck
    • getInterval

      public final Duration getInterval()
      Description copied from interface: HealthCheck
      The approximate number of seconds between health checks for an individual target.

      Must be 5 to 300 seconds

      Default: 10 seconds if protocol is `GENEVE`, 35 seconds if target type is `lambda`, else 30 seconds

      Specified by:
      getInterval in interface HealthCheck
    • getPath

      public final String getPath()
      Description copied from interface: HealthCheck
      The ping path destination where Elastic Load Balancing sends health check requests.

      Default: /

      Specified by:
      getPath in interface HealthCheck
    • getPort

      public final String getPort()
      Description copied from interface: HealthCheck
      The port that the load balancer uses when performing health checks on the targets.

      Default: 'traffic-port'

      Specified by:
      getPort in interface HealthCheck
    • getProtocol

      public final Protocol getProtocol()
      Description copied from interface: HealthCheck
      The protocol the load balancer uses when performing health checks on targets.

      The TCP protocol is supported for health checks only if the protocol of the target group is TCP, TLS, UDP, or TCP_UDP. The TLS, UDP, and TCP_UDP protocols are not supported for health checks.

      Default: HTTP for ALBs, TCP for NLBs

      Specified by:
      getProtocol in interface HealthCheck
    • getTimeout

      public final Duration getTimeout()
      Description copied from interface: HealthCheck
      The amount of time, in seconds, during which no response from a target means a failed health check.

      Must be 2 to 120 seconds.

      Default: 6 seconds if the protocol is HTTP, 5 seconds if protocol is `GENEVE`, 30 seconds if target type is `lambda`, 10 seconds for TCP, TLS, or HTTPS

      Specified by:
      getTimeout in interface HealthCheck
    • getUnhealthyThresholdCount

      public final Number getUnhealthyThresholdCount()
      Description copied from interface: HealthCheck
      The number of consecutive health check failures required before considering a target unhealthy.

      For Application Load Balancers, the default is 2. For Network Load Balancers, this value must be the same as the healthy threshold count.

      Default: 2

      Specified by:
      getUnhealthyThresholdCount 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