@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:36.575Z") @Stability(value=Stable) 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.*;
import software.amazon.awscdk.services.appmesh.*;
TcpHealthCheckOptions tcpHealthCheckOptions = TcpHealthCheckOptions.builder()
.healthyThreshold(123)
.interval(Duration.minutes(30))
.timeout(Duration.minutes(30))
.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()
The number of consecutive successful health checks that must occur before declaring listener healthy.
|
default Duration |
getInterval()
The time period between each health check execution.
|
default Duration |
getTimeout()
The amount of time to wait when receiving a response from the health check.
|
default Number |
getUnhealthyThreshold()
The number of consecutive failed health checks that must occur before declaring a listener unhealthy.
|
@Stability(value=Stable) @Nullable default Number getHealthyThreshold()
Default: 2
@Stability(value=Stable) @Nullable default Duration getInterval()
Default: Duration.seconds(5)
@Stability(value=Stable) @Nullable default Duration getTimeout()
Default: Duration.seconds(2)
@Stability(value=Stable) @Nullable default Number getUnhealthyThreshold()
Default: - 2
@Stability(value=Stable) static TcpHealthCheckOptions.Builder builder()
TcpHealthCheckOptions.Builder of TcpHealthCheckOptionsCopyright © 2022. All rights reserved.