@Generated(value="software.amazon.awssdk:codegen") public final class HealthCheckConfig extends Object implements SdkPojo, Serializable, ToCopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>
The health check configuration of a target group. Health check configurations aren't used for LAMBDA and
ALB target groups.
| Modifier and Type | Class and Description |
|---|---|
static interface |
HealthCheckConfig.Builder |
| Modifier and Type | Method and Description |
|---|---|
static HealthCheckConfig.Builder |
builder() |
Boolean |
enabled()
Indicates whether health checking is enabled.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
healthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target.
|
Integer |
healthCheckTimeoutSeconds()
The amount of time, in seconds, to wait before reporting a target as unhealthy.
|
Integer |
healthyThresholdCount()
The number of consecutive successful health checks required before considering an unhealthy target healthy.
|
Matcher |
matcher()
The codes to use when checking for a successful response from a target.
|
String |
path()
The destination for health checks on the targets.
|
Integer |
port()
The port used when performing health checks on targets.
|
TargetGroupProtocol |
protocol()
The protocol used when performing health checks on targets.
|
String |
protocolAsString()
The protocol used when performing health checks on targets.
|
HealthCheckProtocolVersion |
protocolVersion()
The protocol version used when performing health checks on targets.
|
String |
protocolVersionAsString()
The protocol version used when performing health checks on targets.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends HealthCheckConfig.Builder> |
serializableBuilderClass() |
HealthCheckConfig.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Integer |
unhealthyThresholdCount()
The number of consecutive failed health checks required before considering a target unhealthy.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final Boolean enabled()
Indicates whether health checking is enabled.
public final Integer healthCheckIntervalSeconds()
The approximate amount of time, in seconds, between health checks of an individual target. The range is 5–300 seconds. The default is 30 seconds.
public final Integer healthCheckTimeoutSeconds()
The amount of time, in seconds, to wait before reporting a target as unhealthy. The range is 1–120 seconds. The default is 5 seconds.
public final Integer healthyThresholdCount()
The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
public final Matcher matcher()
The codes to use when checking for a successful response from a target. These are called Success codes in the console.
public final String path()
The destination for health checks on the targets. If the protocol version is HTTP/1.1 or
HTTP/2, specify a valid URI (for example, /path?query). The default path is
/. Health checks are not supported if the protocol version is gRPC, however, you can
choose HTTP/1.1 or HTTP/2 and specify a valid URI.
HTTP/1.1 or
HTTP/2, specify a valid URI (for example, /path?query). The default path is
/. Health checks are not supported if the protocol version is gRPC, however,
you can choose HTTP/1.1 or HTTP/2 and specify a valid URI.public final Integer port()
The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
public final TargetGroupProtocol protocol()
The protocol used when performing health checks on targets. The possible protocols are HTTP and
HTTPS. The default is HTTP.
If the service returns an enum value that is not available in the current SDK version, protocol will
return TargetGroupProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from protocolAsString().
HTTP
and HTTPS. The default is HTTP.TargetGroupProtocolpublic final String protocolAsString()
The protocol used when performing health checks on targets. The possible protocols are HTTP and
HTTPS. The default is HTTP.
If the service returns an enum value that is not available in the current SDK version, protocol will
return TargetGroupProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from protocolAsString().
HTTP
and HTTPS. The default is HTTP.TargetGroupProtocolpublic final HealthCheckProtocolVersion protocolVersion()
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1 and HTTP2.
If the service returns an enum value that is not available in the current SDK version, protocolVersion
will return HealthCheckProtocolVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from protocolVersionAsString().
HTTP1 and HTTP2.HealthCheckProtocolVersionpublic final String protocolVersionAsString()
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1 and HTTP2.
If the service returns an enum value that is not available in the current SDK version, protocolVersion
will return HealthCheckProtocolVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from protocolVersionAsString().
HTTP1 and HTTP2.HealthCheckProtocolVersionpublic final Integer unhealthyThresholdCount()
The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
public HealthCheckConfig.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>public static HealthCheckConfig.Builder builder()
public static Class<? extends HealthCheckConfig.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.