Skip to content
v2.275.0

HealthCheckType Enum ​

The type of health check to be associated with the record.

Example ​

ts
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, 'ARecordFailoverPrimary', {
  zone: myZone,
  target: route53.RecordTarget.fromIpAddresses('1.2.3.4'),
  failover: route53.Failover.PRIMARY,
  healthCheck,
  setIdentifier: 'failover-primary',
});

new route53.ARecord(this, 'ARecordFailoverSecondary', {
  zone: myZone,
  target: route53.RecordTarget.fromIpAddresses('5.6.7.8'),
  failover: route53.Failover.SECONDARY,
  setIdentifier: 'failover-secondary',
});

Members ​

MemberDescription
HTTPHTTP health check.
HTTPSHTTPS health check.
HTTP_STR_MATCHHTTP health check with string matching.
HTTPS_STR_MATCHHTTPS health check with string matching.
TCPTCP health check.
CLOUDWATCH_METRICCloudWatch metric health check.
CALCULATEDCalculated health check.
RECOVERY_CONTROLRecovery control health check.

Referenced by ​