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.84.0 (build 5404dcf)",
date="2023-06-19T16:30:45.370Z")
@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.services.autoscaling.*;
import software.amazon.awscdk.core.*;
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
ConstructorsModifierConstructorDescriptionprotectedHealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedHealthCheck(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthCheckec2()Use EC2 for health checks.static HealthCheckec2(Ec2HealthCheckOptions options) Use EC2 for health checks.static HealthCheckelb(ElbHealthCheckOptions options) Use ELB for health checks.getType()Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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
Use EC2 for health checks.- Parameters:
options- EC2 health check options.
-
ec2
Use EC2 for health checks. -
elb
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
-
getGracePeriod
-