Enum Class HealthCheckType
- All Implemented Interfaces:
Serializable,Comparable<HealthCheckType>,java.lang.constant.Constable
Example:
HostedZone myZone;
HealthCheck healthCheck = HealthCheck.Builder.create(this, "HealthCheck")
.type(HealthCheckType.HTTP)
.fqdn("example.com")
.port(80)
.resourcePath("/health")
.failureThreshold(3)
.requestInterval(Duration.seconds(30))
.build();
ARecord.Builder.create(this, "ARecord")
.zone(myZone)
.target(RecordTarget.fromIpAddresses("1.2.3.4"))
.healthCheck(healthCheck)
.weight(100)
.build();
ARecord.Builder.create(this, "ARecord2")
.zone(myZone)
.target(RecordTarget.fromIpAddresses("5.6.7.8"))
.weight(0)
.build();
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionCalculated health check.CloudWatch metric health check.HTTP health check.HTTP health check with string matching.HTTPS health check.HTTPS health check with string matching.Recovery control health check.TCP health check. -
Method Summary
Modifier and TypeMethodDescriptionstatic HealthCheckTypeReturns the enum constant of this class with the specified name.static HealthCheckType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-