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 .
| Source | |
|---|---|
| Type last changed |
Example
// 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,
};
# 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
)
// 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();
// 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
};
// 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{} #healthCheckIntervalSecondsoptionalnumberhealth_check_interval_secondsoptionalint | floathealthCheckIntervalSecondsoptionalNumberHealthCheckIntervalSecondsoptionaldoubleHealthCheckIntervalSecondsoptional*float64 #The range is 5–300 seconds. The default is 30 seconds.
healthCheckTimeoutSecondsoptionalnumberhealth_check_timeout_secondsoptionalint | floathealthCheckTimeoutSecondsoptionalNumberHealthCheckTimeoutSecondsoptionaldoubleHealthCheckTimeoutSecondsoptional*float64 #The range is 1–120 seconds. The default is 5 seconds.
healthyThresholdCountoptionalnumberhealthy_threshold_countoptionalint | floathealthyThresholdCountoptionalNumberHealthyThresholdCountoptionaldoubleHealthyThresholdCountoptional*float64 #The range is 2–10. The default is 5.
matcheroptionalIResolvable | CfnTargetGroup.MatcherPropertymatcheroptionaltyping.Union[IResolvable, MatcherProperty]matcheroptionalIResolvableMatcheroptionalIResolvableMatcheroptionalinterface{} #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.
The default setting is the port that a target receives traffic on.
protocoloptionalstringprotocoloptionalstrprotocoloptionalStringProtocoloptionalstringProtocoloptional*string #The possible protocols are HTTP and HTTPS . The default is HTTP .
protocolVersionoptionalstringprotocol_versionoptionalstrprotocolVersionoptionalStringProtocolVersionoptionalstringProtocolVersionoptional*string #The possible protocol versions are HTTP1 and HTTP2 .
unhealthyThresholdCountoptionalnumberunhealthy_threshold_countoptionalint | floatunhealthyThresholdCountoptionalNumberUnhealthyThresholdCountoptionaldoubleUnhealthyThresholdCountoptional*float64 #The range is 2–10. The default is 2.