ReadonlyactionAn action for the DNS firewall rule to take on matching requests.
Optional Readonlyblock(OPTIONAL) Configure an override domain for BLOCK actions. This is a custom DNS record to send back in response to the query.
Optional Readonlyblock(OPTIONAL) Configure a time-to-live (TTL) for the override domain. This is the recommended amount of time for the DNS resolver or web browser to cache the override record and use it in response to this query, if it is received again. By default, this is zero, and the record isn't cached.
Optional ReadonlyblockConfigure a specific response type for BLOCK actions. Block response types are defined here: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-dns-firewall-rule-actions.html
Optional ReadonlycustomA file containing a custom domain list in TXT format.
Optional ReadonlymanagedConfigure a rule that uses an AWS-managed domain list. AWS-managed domain lists are defined here: https://docs.aws.amazon.com/Route53/latest/DeveloperGuide/resolver-dns-firewall-managed-domain-lists.html.
Before using a managed domain list, please ensure that it is available in the region you are deploying it to. Regional availability of managed domain lists is included in the link above.
Include only one of customDomainList or managedDomainList for each rule definition.
NetworkConfigTypes.dnsFirewallManagedDomainListEnum
ReadonlynameA friendly name for the DNS firewall rule.
ReadonlypriorityThe priority of the DNS firewall rule.
NetworkConfig / CentralNetworkServicesConfig / ResolverConfig / DnsFirewallRuleGroupConfig / DnsFirewallRulesConfig
Route 53 DNS firewall rule configuration.
Description
Use this configuration to define individual rules for your DNS firewall. This allows you to define the DNS firewall behavior for your VPCs.
Example
The following example creates a rule that blocks requests from a custom list of domains. The custom domain list path must exist in your accelerator configuration repository.
The following example creates a rule referencing an AWS-managed domain list. The managed domain list must be available in the region you are deploying the rule to.