Class HealthCheck

java.lang.Object
software.amazon.jsii.JsiiObject
software.amazon.awscdk.services.autoscaling.HealthCheck
All Implemented Interfaces:
software.amazon.jsii.JsiiSerializable

@Generated(value="jsii-pacmak/1.99.0 (build 8f757e4)", date="2024-06-13T18:49:14.885Z") @Stability(Stable) public class HealthCheck extends software.amazon.jsii.JsiiObject
Health check settings.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.*;
 import software.amazon.awscdk.services.autoscaling.*;
 HealthCheck healthCheck = HealthCheck.ec2(Ec2HealthCheckOptions.builder()
         .grace(Duration.minutes(30))
         .build());
 
  • Nested Class Summary

    Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject

    software.amazon.jsii.JsiiObject.InitializationMode
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
     
    protected
    HealthCheck(software.amazon.jsii.JsiiObjectRef objRef)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    ec2()
    Use EC2 for health checks.
    Use EC2 for health checks.
    Use ELB for health checks.
     
     

    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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface software.amazon.jsii.JsiiSerializable

    $jsii$toJson
  • Constructor Details

    • HealthCheck

      protected HealthCheck(software.amazon.jsii.JsiiObjectRef objRef)
    • HealthCheck

      protected HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
  • Method Details

    • ec2

      @Stability(Stable) @NotNull public static HealthCheck ec2(@Nullable Ec2HealthCheckOptions options)
      Use EC2 for health checks.

      Parameters:
      options - EC2 health check options.
    • ec2

      @Stability(Stable) @NotNull public static HealthCheck ec2()
      Use EC2 for health checks.
    • elb

      @Stability(Stable) @NotNull public static HealthCheck elb(@NotNull ElbHealthCheckOptions options)
      Use ELB for health checks.

      It considers the instance unhealthy if it fails either the EC2 status checks or the load balancer health checks.

      Parameters:
      options - ELB health check options. This parameter is required.
    • getType

      @Stability(Stable) @NotNull public String getType()
    • getGracePeriod

      @Stability(Stable) @Nullable public Duration getGracePeriod()