@Generated(value="jsii-pacmak/1.74.0 (build 6d08790)",
date="2023-03-22T19:35:47.995Z")
public class HealthCheck
extends software.amazon.jsii.JsiiObject
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());
Modifier | Constructor and Description |
---|---|
protected |
HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
HealthCheck(software.amazon.jsii.JsiiObjectRef objRef) |
Modifier and Type | Method and Description |
---|---|
static 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.
|
Duration |
getGracePeriod() |
java.lang.String |
getType() |
protected HealthCheck(software.amazon.jsii.JsiiObjectRef objRef)
protected HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public static HealthCheck ec2(Ec2HealthCheckOptions options)
options
- EC2 health check options.public static HealthCheck ec2()
public static HealthCheck elb(ElbHealthCheckOptions options)
It considers the instance unhealthy if it fails either the EC2 status checks or the load balancer health checks.
options
- ELB health check options. This parameter is required.public java.lang.String getType()
public Duration getGracePeriod()