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.104.0 (build e79254c)",
date="2024-12-06T14:43:14.628Z")
@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
ModifierConstructorDescriptionprotected
HealthCheck
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
HealthCheck
(software.amazon.jsii.JsiiObjectRef objRef) -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthCheck
ec2()
Use EC2 for health checks.static HealthCheck
ec2
(Ec2HealthCheckOptions options) Use EC2 for health checks.static HealthCheck
elb
(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, 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
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
-