> **Experimental**
>
> `@aws-cdk/aws-apprunner-alpha` is an [**experimental**](/stability) (alpha) package: its API may change in any release, without a major version bump.
# TcpHealthCheckOptions

Properties used to define TCP Based healthchecks.

- Stability: [Experimental](/cdk/api/stability.html)
- Source: [`lib/service.ts`](https://github.com/aws/aws-cdk/blob/v2.274.0-alpha.0/packages/@aws-cdk/aws-apprunner-alpha/lib/service.ts#L986)

## Example

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

## Properties

- `healthyThreshold`: number = 1 — The number of consecutive checks that must succeed before App Runner decides that the service is healthy.

- `interval`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.seconds(5) — The time interval, in seconds, between health checks.

- `timeout`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) = Duration.seconds(2) — The time, in seconds, to wait for a health check response before deciding it failed.

- `unhealthyThreshold`: number = 5 — The number of consecutive checks that must fail before App Runner decides that the service is unhealthy.
