HealthCheckCustomConfig Struct
Specifies information about an optional custom health check.
| Source | aws-servicediscovery/lib/service.ts |
|---|
Example
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
# 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
// 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();
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
};
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
failureThresholdoptionalnumberfailure_thresholdoptionalint | floatfailureThresholdoptionalNumberFailureThresholdoptionaldoubleFailureThresholdoptional*float64 = 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.