# HealthCheckConfigurationProperty

Describes the settings for the health check that AWS App Runner performs to monitor the health of a service.

Returned by: [HealthCheck.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-apprunner-alpha.HealthCheck.html#bind)

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_apprunner as apprunner } from 'aws-cdk-lib';
const healthCheckConfigurationProperty: apprunner.CfnService.HealthCheckConfigurationProperty = {
  healthyThreshold: 123,
  interval: 123,
  path: 'path',
  protocol: 'protocol',
  timeout: 123,
  unhealthyThreshold: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_apprunner as apprunner

health_check_configuration_property = apprunner.CfnService.HealthCheckConfigurationProperty(
    healthy_threshold=123,
    interval=123,
    path="path",
    protocol="protocol",
    timeout=123,
    unhealthy_threshold=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.apprunner.*;

HealthCheckConfigurationProperty healthCheckConfigurationProperty = HealthCheckConfigurationProperty.builder()
        .healthyThreshold(123)
        .interval(123)
        .path("path")
        .protocol("protocol")
        .timeout(123)
        .unhealthyThreshold(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.AppRunner;

var healthCheckConfigurationProperty = new HealthCheckConfigurationProperty {
    HealthyThreshold = 123,
    Interval = 123,
    Path = "path",
    Protocol = "protocol",
    Timeout = 123,
    UnhealthyThreshold = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

healthCheckConfigurationProperty := &HealthCheckConfigurationProperty{
	HealthyThreshold: jsii.Number(123),
	Interval: jsii.Number(123),
	Path: jsii.String("path"),
	Protocol: jsii.String("protocol"),
	Timeout: jsii.Number(123),
	UnhealthyThreshold: jsii.Number(123),
}
```

## Properties

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

  Default: `1`

- `interval`: number — The time interval, in seconds, between health checks.

  Default: `5`

- `path`: string — The URL that health check requests are sent to.

  `Path` is only applicable when you set `Protocol` to `HTTP` .

  Default: `"/"`

- `protocol`: string — The IP protocol that App Runner uses to perform health checks for your service.

  If you set `Protocol` to `HTTP` , App Runner sends health check requests to the HTTP path specified by `Path` .

  Default: `TCP`

- `timeout`: number — The time, in seconds, to wait for a health check response before deciding it failed.

  Default: `2`

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

  Default: `5`
