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

Contains static factory methods for creating health checks for different protocols.

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

## Example

```ts
new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromEcrPublic({
    imageConfiguration: { port: 8000 },
    imageIdentifier: 'public.ecr.aws/aws-containers/hello-app-runner:latest',
  }),
  healthCheck: apprunner.HealthCheck.http({
    healthyThreshold: 5,
    interval: Duration.seconds(10),
    path: '/',
    timeout: Duration.seconds(10),
    unhealthyThreshold: 10,
  }),
});
```

## Properties

- `healthCheckProtocolType`: [HealthCheckProtocolType](/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.HealthCheckProtocolType.html)

- `healthyThreshold`: number

- `interval`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html)

- `path`: string

- `timeout`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html)

- `unhealthyThreshold`: number

## Methods

- `bind(): CfnService.HealthCheckConfigurationProperty`

- `http(options?: HttpHealthCheckOptions): HealthCheck // chainable` (static) — Construct a HTTP health check.

- `tcp(options?: TcpHealthCheckOptions): HealthCheck // chainable` (static) — Construct a TCP health check.
