Skip to content
v2.278.0

HealthCheckConfigProperty Struct ​

Describes the health check configuration of a target group.

Health check configurations aren't used for target groups of type LAMBDA or ALB .

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
const healthCheckConfigProperty: vpclattice.CfnTargetGroup.HealthCheckConfigProperty = {
  enabled: false,
  healthCheckIntervalSeconds: 123,
  healthCheckTimeoutSeconds: 123,
  healthyThresholdCount: 123,
  matcher: {
    httpCode: 'httpCode',
  },
  path: 'path',
  port: 123,
  protocol: 'protocol',
  protocolVersion: 'protocolVersion',
  unhealthyThresholdCount: 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_vpclattice as vpclattice

health_check_config_property = vpclattice.CfnTargetGroup.HealthCheckConfigProperty(
    enabled=False,
    health_check_interval_seconds=123,
    health_check_timeout_seconds=123,
    healthy_threshold_count=123,
    matcher=vpclattice.CfnTargetGroup.MatcherProperty(
        http_code="httpCode"
    ),
    path="path",
    port=123,
    protocol="protocol",
    protocol_version="protocolVersion",
    unhealthy_threshold_count=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.vpclattice.*;

HealthCheckConfigProperty healthCheckConfigProperty = HealthCheckConfigProperty.builder()
        .enabled(false)
        .healthCheckIntervalSeconds(123)
        .healthCheckTimeoutSeconds(123)
        .healthyThresholdCount(123)
        .matcher(MatcherProperty.builder()
                .httpCode("httpCode")
                .build())
        .path("path")
        .port(123)
        .protocol("protocol")
        .protocolVersion("protocolVersion")
        .unhealthyThresholdCount(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.VpcLattice;

var healthCheckConfigProperty = new HealthCheckConfigProperty {
    Enabled = false,
    HealthCheckIntervalSeconds = 123,
    HealthCheckTimeoutSeconds = 123,
    HealthyThresholdCount = 123,
    Matcher = new MatcherProperty {
        HttpCode = "httpCode"
    },
    Path = "path",
    Port = 123,
    Protocol = "protocol",
    ProtocolVersion = "protocolVersion",
    UnhealthyThresholdCount = 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"

healthCheckConfigProperty := &HealthCheckConfigProperty{
	Enabled: jsii.Boolean(false),
	HealthCheckIntervalSeconds: jsii.Number(123),
	HealthCheckTimeoutSeconds: jsii.Number(123),
	HealthyThresholdCount: jsii.Number(123),
	Matcher: &MatcherProperty{
		HttpCode: jsii.String("httpCode"),
	},
	Path: jsii.String("path"),
	Port: jsii.Number(123),
	Protocol: jsii.String("protocol"),
	ProtocolVersion: jsii.String("protocolVersion"),
	UnhealthyThresholdCount: jsii.Number(123),
}

Properties ​

enabledoptionalboolean | IResolvableenabledoptionaltyping.Union[bool, IResolvable]enabledoptionalBooleanEnabledoptionalboolEnabledoptionalinterface{} #
Indicates whether health checking is enabled.
healthCheckIntervalSecondsoptionalnumberhealth_check_interval_secondsoptionalint | floathealthCheckIntervalSecondsoptionalNumberHealthCheckIntervalSecondsoptionaldoubleHealthCheckIntervalSecondsoptional*float64 #
The approximate amount of time, in seconds, between health checks of an individual target.

The range is 5–300 seconds. The default is 30 seconds.

healthCheckTimeoutSecondsoptionalnumberhealth_check_timeout_secondsoptionalint | floathealthCheckTimeoutSecondsoptionalNumberHealthCheckTimeoutSecondsoptionaldoubleHealthCheckTimeoutSecondsoptional*float64 #
The amount of time, in seconds, to wait before reporting a target as unhealthy.

The range is 1–120 seconds. The default is 5 seconds.

healthyThresholdCountoptionalnumberhealthy_threshold_countoptionalint | floathealthyThresholdCountoptionalNumberHealthyThresholdCountoptionaldoubleHealthyThresholdCountoptional*float64 #
The number of consecutive successful health checks required before considering an unhealthy target healthy.

The range is 2–10. The default is 5.

matcheroptionalIResolvable | CfnTargetGroup.MatcherPropertymatcheroptionaltyping.Union[IResolvable, MatcherProperty]matcheroptionalIResolvableMatcheroptionalIResolvableMatcheroptionalinterface{} #
The codes to use when checking for a successful response from a target.
pathoptionalstringpathoptionalstrpathoptionalStringPathoptionalstringPathoptional*string #
The destination for health checks on the targets.
notes

If the protocol version is HTTP/1.1 or HTTP/2 , specify a valid URI (for example, /path?query ). The default path is / . Health checks are not supported if the protocol version is gRPC , however, you can choose HTTP/1.1 or HTTP/2 and specify a valid URI.

portoptionalnumberportoptionalint | floatportoptionalNumberPortoptionaldoublePortoptional*float64 #
The port used when performing health checks on targets.

The default setting is the port that a target receives traffic on.

protocoloptionalstringprotocoloptionalstrprotocoloptionalStringProtocoloptionalstringProtocoloptional*string #
The protocol used when performing health checks on targets.

The possible protocols are HTTP and HTTPS . The default is HTTP .

protocolVersionoptionalstringprotocol_versionoptionalstrprotocolVersionoptionalStringProtocolVersionoptionalstringProtocolVersionoptional*string #
The protocol version used when performing health checks on targets.

The possible protocol versions are HTTP1 and HTTP2 .

unhealthyThresholdCountoptionalnumberunhealthy_threshold_countoptionalint | floatunhealthyThresholdCountoptionalNumberUnhealthyThresholdCountoptionaldoubleUnhealthyThresholdCountoptional*float64 #
The number of consecutive failed health checks required before considering a target unhealthy.

The range is 2–10. The default is 2.