fullyQualifiedDomainName property
Amazon Route 53 behavior depends on whether you specify a value for
IPAddress.
If you specify a value for IPAddress:
Route 53 sends health check requests to the specified IPv4 or IPv6 address
and passes the value of FullyQualifiedDomainName in the
Host header for all health checks except TCP health checks.
This is typically the fully qualified DNS name of the endpoint on which you
want Route 53 to perform health checks.
When Route 53 checks the health of an endpoint, here is how it constructs
the Host header:
-
If you specify a value of
80forPortandHTTPorHTTP_STR_MATCHforType, Route 53 passes the value ofFullyQualifiedDomainNameto the endpoint in theHostheader. -
If you specify a value of
443forPortandHTTPSorHTTPS_STR_MATCHforType, Route 53 passes the value ofFullyQualifiedDomainNameto the endpoint in theHostheader. -
If you specify another value for
Portand any value exceptTCPforType, Route 53 passesFullyQualifiedDomainName:Portto the endpoint in theHostheader.
FullyQualifiedDomainName,
Route 53 substitutes the value of IPAddress in the
Host header in each of the above cases.
If you don't specify a value for IPAddress:
If you don't specify a value for IPAddress, Route 53 sends a
DNS request to the domain that you specify in
FullyQualifiedDomainName at the interval you specify in
RequestInterval. Using an IPv4 address that is returned by DNS,
Route 53 then checks the health of the endpoint.
If you want to check the health of weighted, latency, or failover resource
record sets and you choose to specify the endpoint only by
FullyQualifiedDomainName, we recommend that you create a
separate health check for each endpoint. For example, create a health check
for each HTTP server that is serving content for www.example.com. For the
value of FullyQualifiedDomainName, specify the domain name of
the server (such as us-east-2-www.example.com), not the name of
the resource record sets (www.example.com).
In addition, if the value of Type is HTTP,
HTTPS, HTTP_STR_MATCH, or
HTTPS_STR_MATCH, Route 53 passes the value of
FullyQualifiedDomainName in the Host header, as it
does when you specify a value for IPAddress. If the value of
Type is TCP, Route 53 doesn't pass a
Host header.
Implementation
final String? fullyQualifiedDomainName;