@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-07T23:47:00.680Z") @Stability(value=Experimental) public interface TcpHealthCheckOptions extends software.amazon.jsii.JsiiSerializable
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.core.*;
import software.amazon.awscdk.services.appmesh.*;
Duration duration;
TcpHealthCheckOptions tcpHealthCheckOptions = TcpHealthCheckOptions.builder()
.healthyThreshold(123)
.interval(duration)
.timeout(duration)
.unhealthyThreshold(123)
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
TcpHealthCheckOptions.Builder
A builder for
TcpHealthCheckOptions |
static class |
TcpHealthCheckOptions.Jsii$Proxy
An implementation for
TcpHealthCheckOptions |
| Modifier and Type | Method and Description |
|---|---|
static TcpHealthCheckOptions.Builder |
builder() |
default Number |
getHealthyThreshold()
(experimental) The number of consecutive successful health checks that must occur before declaring listener healthy.
|
default Duration |
getInterval()
(experimental) The time period between each health check execution.
|
default Duration |
getTimeout()
(experimental) The amount of time to wait when receiving a response from the health check.
|
default Number |
getUnhealthyThreshold()
(experimental) The number of consecutive failed health checks that must occur before declaring a listener unhealthy.
|
@Stability(value=Experimental) @Nullable default Number getHealthyThreshold()
Default: 2
@Stability(value=Experimental) @Nullable default Duration getInterval()
Default: Duration.seconds(5)
@Stability(value=Experimental) @Nullable default Duration getTimeout()
Default: Duration.seconds(2)
@Stability(value=Experimental) @Nullable default Number getUnhealthyThreshold()
Default: - 2
@Stability(value=Experimental) static TcpHealthCheckOptions.Builder builder()
TcpHealthCheckOptions.Builder of TcpHealthCheckOptionsCopyright © 2022. All rights reserved.