Enum Failover
The failover policy.
Namespace: Amazon.CDK.AWS.Route53
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum Failover
Syntax (vb)
Public Enum Failover
Remarks
See: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/routing-policy-failover.html
ExampleMetadata: infused
Examples
HostedZone myZone;
var healthCheck = new HealthCheck(this, "HealthCheck", new HealthCheckProps {
Type = HealthCheckType.HTTP,
Fqdn = "example.com",
Port = 80,
ResourcePath = "/health",
FailureThreshold = 3,
RequestInterval = Duration.Seconds(30)
});
new ARecord(this, "ARecordFailoverPrimary", new ARecordProps {
Zone = myZone,
Target = RecordTarget.FromIpAddresses("1.2.3.4"),
Failover = Failover.PRIMARY,
HealthCheck = healthCheck,
SetIdentifier = "failover-primary"
});
new ARecord(this, "ARecordFailoverSecondary", new ARecordProps {
Zone = myZone,
Target = RecordTarget.FromIpAddresses("5.6.7.8"),
Failover = Failover.SECONDARY,
SetIdentifier = "failover-secondary"
});
Synopsis
Fields
| PRIMARY | The primary resource record set determines how Route 53 responds to DNS queries when the primary resource is healthy. |
| SECONDARY | The secondary resource record set determines how Route 53 responds to DNS queries when the primary resource is unhealthy. |
Fields
| Name | Description |
|---|---|
| PRIMARY | The primary resource record set determines how Route 53 responds to DNS queries when the primary resource is healthy. |
| SECONDARY | The secondary resource record set determines how Route 53 responds to DNS queries when the primary resource is unhealthy. |