Skip to content
v2.274.0

GrpcHealthCheckOptions Struct ​

Properties used to define GRPC Based healthchecks.

Example ​

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

Properties ​

healthyThresholdnumberhealthy_thresholdint | floathealthyThresholdNumberHealthyThresholddoubleHealthyThreshold*float64= 2#
The number of consecutive successful health checks that must occur before declaring listener healthy.
intervalDurationintervalDurationintervalDurationIntervalDurationIntervalDuration= Duration.seconds(5)#
The time period between each health check execution.
timeoutDurationtimeoutDurationtimeoutDurationTimeoutDurationTimeoutDuration= Duration.seconds(2)#
The amount of time to wait when receiving a response from the health check.
unhealthyThresholdnumberunhealthy_thresholdint | floatunhealthyThresholdNumberUnhealthyThresholddoubleUnhealthyThreshold*float64= 2#
The number of consecutive failed health checks that must occur before declaring a listener unhealthy.