Interface CfnTargetGroup.HealthCheckConfigProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTargetGroup.HealthCheckConfigProperty.Jsii$Proxy
- Enclosing class:
CfnTargetGroup
Health check configurations aren't used for target groups of type LAMBDA or ALB .
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.vpclattice.*;
HealthCheckConfigProperty healthCheckConfigProperty = HealthCheckConfigProperty.builder()
.enabled(false)
.healthCheckIntervalSeconds(123)
.healthCheckTimeoutSeconds(123)
.healthyThresholdCount(123)
.matcher(MatcherProperty.builder()
.httpCode("httpCode")
.build())
.path("path")
.port(123)
.protocol("protocol")
.protocolVersion("protocolVersion")
.unhealthyThresholdCount(123)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTargetGroup.HealthCheckConfigPropertystatic final classAn implementation forCfnTargetGroup.HealthCheckConfigProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectIndicates whether health checking is enabled.default NumberThe approximate amount of time, in seconds, between health checks of an individual target.default NumberThe amount of time, in seconds, to wait before reporting a target as unhealthy.default NumberThe number of consecutive successful health checks required before considering an unhealthy target healthy.default ObjectThe codes to use when checking for a successful response from a target.default StringgetPath()The destination for health checks on the targets.default NumbergetPort()The port used when performing health checks on targets.default StringThe protocol used when performing health checks on targets.default StringThe protocol version used when performing health checks on targets.default NumberThe number of consecutive failed health checks required before considering a target unhealthy.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getEnabled
Indicates whether health checking is enabled.Returns union: either
BooleanorIResolvable- See Also:
-
getHealthCheckIntervalSeconds
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.
- See Also:
-
getHealthCheckTimeoutSeconds
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.
- See Also:
-
getHealthyThresholdCount
The number of consecutive successful health checks required before considering an unhealthy target healthy.The range is 2–10. The default is 5.
- See Also:
-
getMatcher
The codes to use when checking for a successful response from a target.Returns union: either
IResolvableorCfnTargetGroup.MatcherProperty- See Also:
-
getPath
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.- See Also:
-
getPort
The port used when performing health checks on targets.The default setting is the port that a target receives traffic on.
- See Also:
-
getProtocol
The protocol used when performing health checks on targets.The possible protocols are
HTTPandHTTPS. The default isHTTP.- See Also:
-
getProtocolVersion
The protocol version used when performing health checks on targets.The possible protocol versions are
HTTP1andHTTP2.- See Also:
-
getUnhealthyThresholdCount
The number of consecutive failed health checks required before considering a target unhealthy.The range is 2–10. The default is 2.
- See Also:
-
builder
-