Skip to content
v2.278.0

HealthCheckProperty Struct ​

An object that represents the health check policy for a virtual node's listener.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const healthCheckProperty: appmesh.CfnVirtualNode.HealthCheckProperty = {
  healthyThreshold: 123,
  intervalMillis: 123,
  protocol: 'protocol',
  timeoutMillis: 123,
  unhealthyThreshold: 123,

  // the properties below are optional
  path: 'path',
  port: 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_appmesh as appmesh

health_check_property = appmesh.CfnVirtualNode.HealthCheckProperty(
    healthy_threshold=123,
    interval_millis=123,
    protocol="protocol",
    timeout_millis=123,
    unhealthy_threshold=123,

    # the properties below are optional
    path="path",
    port=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.appmesh.*;

HealthCheckProperty healthCheckProperty = HealthCheckProperty.builder()
        .healthyThreshold(123)
        .intervalMillis(123)
        .protocol("protocol")
        .timeoutMillis(123)
        .unhealthyThreshold(123)

        // the properties below are optional
        .path("path")
        .port(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.AppMesh;

var healthCheckProperty = new HealthCheckProperty {
    HealthyThreshold = 123,
    IntervalMillis = 123,
    Protocol = "protocol",
    TimeoutMillis = 123,
    UnhealthyThreshold = 123,

    // the properties below are optional
    Path = "path",
    Port = 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"

healthCheckProperty := &HealthCheckProperty{
	HealthyThreshold: jsii.Number(123),
	IntervalMillis: jsii.Number(123),
	Protocol: jsii.String("protocol"),
	TimeoutMillis: jsii.Number(123),
	UnhealthyThreshold: jsii.Number(123),

	// the properties below are optional
	Path: jsii.String("path"),
	Port: jsii.Number(123),
}

Properties ​

healthyThresholdnumberhealthy_thresholdint | floathealthyThresholdNumberHealthyThresholddoubleHealthyThreshold*float64 required #
The number of consecutive successful health checks that must occur before declaring listener healthy.
intervalMillisnumberinterval_millisint | floatintervalMillisNumberIntervalMillisdoubleIntervalMillis*float64 required #
The time period in milliseconds between each health check execution.
pathoptionalstringpathoptionalstrpathoptionalStringPathoptionalstringPathoptional*string #
The destination path for the health check request.

This value is only used if the specified protocol is HTTP or HTTP/2. For any other protocol, this value is ignored.

portoptionalnumberportoptionalint | floatportoptionalNumberPortoptionaldoublePortoptional*float64 #
The destination port for the health check request.

This port must match the port defined in the PortMapping for the listener.

protocolstringprotocolstrprotocolStringProtocolstringProtocol*string required #
The protocol for the health check request.

If you specify grpc , then your service must conform to the GRPC Health Checking Protocol .

timeoutMillisnumbertimeout_millisint | floattimeoutMillisNumberTimeoutMillisdoubleTimeoutMillis*float64 required #
The amount of time to wait when receiving a response from the health check, in milliseconds.
unhealthyThresholdnumberunhealthy_thresholdint | floatunhealthyThresholdNumberUnhealthyThresholddoubleUnhealthyThreshold*float64 required #
The number of consecutive failed health checks that must occur before declaring a virtual node unhealthy.