# HealthCheckCustomConfig

Specifies information about an optional custom health check.

- Source: [`aws-servicediscovery/lib/service.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-servicediscovery/lib/service.ts#L440)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_servicediscovery as servicediscovery } from 'aws-cdk-lib';
const healthCheckCustomConfig: servicediscovery.HealthCheckCustomConfig = {
  failureThreshold: 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_servicediscovery as servicediscovery

health_check_custom_config = servicediscovery.HealthCheckCustomConfig(
    failure_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.servicediscovery.*;

HealthCheckCustomConfig healthCheckCustomConfig = HealthCheckCustomConfig.builder()
        .failureThreshold(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.ServiceDiscovery;

var healthCheckCustomConfig = new HealthCheckCustomConfig {
    FailureThreshold = 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"

healthCheckCustomConfig := &HealthCheckCustomConfig{
	FailureThreshold: jsii.Number(123),
}
```

## Properties

- `failureThreshold`: number = 1 — The number of 30-second intervals that you want Cloud Map to wait after receiving an UpdateInstanceCustomHealthStatus request before it changes the health status of a service instance.
