enum HealthCheckType
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Route53.HealthCheckType |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awsroute53#HealthCheckType |
![]() | software.amazon.awscdk.services.route53.HealthCheckType |
![]() | aws_cdk.aws_route53.HealthCheckType |
![]() | aws-cdk-lib » aws_route53 » HealthCheckType |
The type of health check to be associated with the record.
Example
declare const myZone: route53.HostedZone;
const healthCheck = new route53.HealthCheck(this, 'HealthCheck', {
type: route53.HealthCheckType.HTTP,
fqdn: 'example.com',
port: 80,
resourcePath: '/health',
failureThreshold: 3,
requestInterval: Duration.seconds(30),
});
new route53.ARecord(this, 'ARecord', {
zone: myZone,
target: route53.RecordTarget.fromIpAddresses('1.2.3.4'),
healthCheck,
weight: 100,
});
new route53.ARecord(this, 'ARecord2', {
zone: myZone,
target: route53.RecordTarget.fromIpAddresses('5.6.7.8'),
weight: 0,
});
Members
Name | Description |
---|---|
HTTP | HTTP health check. |
HTTPS | HTTPS health check. |
HTTP_STR_MATCH | HTTP health check with string matching. |
HTTPS_STR_MATCH | HTTPS health check with string matching. |
TCP | TCP health check. |
CLOUDWATCH_METRIC | CloudWatch metric health check. |
CALCULATED | Calculated health check. |
RECOVERY_CONTROL | Recovery control health check. |
HTTP
HTTP health check.
Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and waits for an HTTP status code of 200 or greater and less than 400.
HTTPS
HTTPS health check.
Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTPS request and waits for an HTTP status code of 200 or greater and less than 400.
HTTP_STR_MATCH
HTTP health check with string matching.
Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTP request and searches the first 5,120 bytes of the response body for the string that you specify in SearchString.
HTTPS_STR_MATCH
HTTPS health check with string matching.
Route 53 tries to establish a TCP connection. If successful, Route 53 submits an HTTPS request and searches the first 5,120 bytes of the response body for the string that you specify in SearchString.
TCP
TCP health check.
Route 53 tries to establish a TCP connection.
CLOUDWATCH_METRIC
CloudWatch metric health check.
The health check is associated with a CloudWatch alarm. If the state of the alarm is OK, the health check is considered healthy. If the state is ALARM, the health check is considered unhealthy. If CloudWatch doesn't have sufficient data to determine whether the state is OK or ALARM, the health check status depends on the setting for InsufficientDataHealthStatus: Healthy, Unhealthy, or LastKnownStatus.
CALCULATED
Calculated health check.
For health checks that monitor the status of other health checks, Route 53 adds up the number of health checks that Route 53 health checkers consider to be healthy and compares that number with the value of HealthThreshold.
RECOVERY_CONTROL
Recovery control health check.
The health check is associated with a Route53 Application Recovery Controller routing control. If the routing control state is ON, the health check is considered healthy. If the state is OFF, the health check is considered unhealthy.