@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.810Z") @Stability(value=Stable) 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.*;
import software.amazon.awscdk.services.autoscaling.*;
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() |
String |
getType() |
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected HealthCheck(software.amazon.jsii.JsiiObjectRef objRef)
protected HealthCheck(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable) @NotNull public static HealthCheck ec2(@Nullable Ec2HealthCheckOptions options)
options - EC2 health check options.@Stability(value=Stable) @NotNull public static HealthCheck ec2()
@Stability(value=Stable) @NotNull public static HealthCheck elb(@NotNull 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.@Stability(value=Stable) @NotNull public String getType()
@Stability(value=Stable) @Nullable public Duration getGracePeriod()
Copyright © 2022. All rights reserved.