Class HealthCheckConfig
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig>
Describes the health check configuration of a target group. Health check configurations aren't used for target groups
of type LAMBDA or ALB.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthCheckConfig.Builderbuilder()final Booleanenabled()Indicates whether health checking is enabled.final booleanfinal booleanequalsBySdkFields(Object obj) Indicates whether some other object is "equal to" this one by SDK fields.final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz) final inthashCode()final IntegerThe approximate amount of time, in seconds, between health checks of an individual target.final IntegerThe amount of time, in seconds, to wait before reporting a target as unhealthy.final IntegerThe number of consecutive successful health checks required before considering an unhealthy target healthy.final Matchermatcher()The codes to use when checking for a successful response from a target.final Stringpath()The destination for health checks on the targets.final Integerport()The port used when performing health checks on targets.final TargetGroupProtocolprotocol()The protocol used when performing health checks on targets.final StringThe protocol used when performing health checks on targets.The protocol version used when performing health checks on targets.final StringThe protocol version used when performing health checks on targets.static Class<? extends HealthCheckConfig.Builder> Take this object and create a builder that contains all of the current property values of this object.final StringtoString()Returns a string representation of this object.final IntegerThe number of consecutive failed health checks required before considering a target unhealthy.Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
enabled
Indicates whether health checking is enabled.
- Returns:
- Indicates whether health checking is enabled.
-
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.
- Returns:
- 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.
-
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.
- Returns:
- 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.
-
healthyThresholdCount
The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
- Returns:
- The number of consecutive successful health checks required before considering an unhealthy target healthy. The range is 2–10. The default is 5.
-
matcher
The codes to use when checking for a successful response from a target.
- Returns:
- The codes to use when checking for a successful response from a target.
-
path
The destination for health checks on the targets. If the protocol version is
HTTP/1.1orHTTP/2, specify a valid URI (for example,/path?query). The default path is/. Health checks are not supported if the protocol version isgRPC, however, you can chooseHTTP/1.1orHTTP/2and specify a valid URI.- Returns:
- The destination for health checks on the targets. If the protocol version is
HTTP/1.1orHTTP/2, specify a valid URI (for example,/path?query). The default path is/. Health checks are not supported if the protocol version isgRPC, however, you can chooseHTTP/1.1orHTTP/2and specify a valid URI.
-
port
The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
- Returns:
- The port used when performing health checks on targets. The default setting is the port that a target receives traffic on.
-
protocol
The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP.If the service returns an enum value that is not available in the current SDK version,
protocolwill returnTargetGroupProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP. - See Also:
-
protocolAsString
The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP.If the service returns an enum value that is not available in the current SDK version,
protocolwill returnTargetGroupProtocol.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolAsString().- Returns:
- The protocol used when performing health checks on targets. The possible protocols are
HTTPandHTTPS. The default isHTTP. - See Also:
-
protocolVersion
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2.If the service returns an enum value that is not available in the current SDK version,
protocolVersionwill returnHealthCheckProtocolVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolVersionAsString().- Returns:
- The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2. - See Also:
-
protocolVersionAsString
The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2.If the service returns an enum value that is not available in the current SDK version,
protocolVersionwill returnHealthCheckProtocolVersion.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromprotocolVersionAsString().- Returns:
- The protocol version used when performing health checks on targets. The possible protocol versions are
HTTP1andHTTP2. - See Also:
-
unhealthyThresholdCount
The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
- Returns:
- The number of consecutive failed health checks required before considering a target unhealthy. The range is 2–10. The default is 2.
-
toBuilder
Description copied from interface:ToCopyableBuilderTake this object and create a builder that contains all of the current property values of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<HealthCheckConfig.Builder,HealthCheckConfig> - Returns:
- a builder for type T
-
builder
-
serializableBuilderClass
-
hashCode
-
equals
-
equalsBySdkFields
Description copied from interface:SdkPojoIndicates whether some other object is "equal to" this one by SDK fields. An SDK field is a modeled, non-inherited field in anSdkPojoclass, and is generated based on a service model.If an
SdkPojoclass does not have any inherited fields,equalsBySdkFieldsandequalsare essentially the same.- Specified by:
equalsBySdkFieldsin interfaceSdkPojo- Parameters:
obj- the object to be compared with- Returns:
- true if the other object equals to this object by sdk fields, false otherwise.
-
toString
-
getValueForField
-
sdkFields
-