# TcpHealthCheckOptions

Properties used to define TCP Based healthchecks.

- Source: [`aws-appmesh/lib/health-checks.ts`](https://github.com/aws/aws-cdk/blob/v2.275.0/packages/aws-cdk-lib/aws-appmesh/lib/health-checks.ts#L60)

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const tcpHealthCheckOptions: appmesh.TcpHealthCheckOptions = {
  healthyThreshold: 123,
  interval: cdk.Duration.minutes(30),
  timeout: cdk.Duration.minutes(30),
  unhealthyThreshold: 123,
};
```

## Properties

- `healthyThreshold`: number = 2 — The number of consecutive successful health checks that must occur before declaring listener healthy.

- `interval`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.seconds(5) — The time period between each health check execution.

- `timeout`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.seconds(2) — The amount of time to wait when receiving a response from the health check.

- `unhealthyThreshold`: number = 2 — The number of consecutive failed health checks that must occur before declaring a listener unhealthy.
