AWS::Route53Resolver::FirewallRuleGroup FirewallRule
A single firewall rule in a rule group.
Syntax
To declare this entity in your Amazon CloudFormation template, use the following syntax:
JSON
{ "Action" :String, "BlockOverrideDnsType" :String, "BlockOverrideDomain" :String, "BlockOverrideTtl" :Integer, "BlockResponse" :String, "FirewallDomainListId" :String, "Priority" :Integer}
YAML
Action:StringBlockOverrideDnsType:StringBlockOverrideDomain:StringBlockOverrideTtl:IntegerBlockResponse:StringFirewallDomainListId:StringPriority:Integer
Properties
Action-
The action that DNS Firewall should take on a DNS query when it matches one of the domains in the rule's domain list:
-
ALLOW- Permit the request to go through. -
ALERT- Permit the request to go through but send an alert to the logs. -
BLOCK- Disallow the request. If this is specified,thenBlockResponsemust also be specified.if
BlockResponseisOVERRIDE, then all of the followingOVERRIDEattributes must be specified:BlockOverrideDnsTypeBlockOverrideDomainBlockOverrideTtl
Required: Yes
Type: String
Allowed values:
ALERT | ALLOW | BLOCKUpdate requires: No interruption
-
BlockOverrideDnsType-
The DNS record's type. This determines the format of the record value that you provided in
BlockOverrideDomain. Used for the rule actionBLOCKwith aBlockResponsesetting ofOVERRIDE.Required: No
Type: String
Allowed values:
CNAMEUpdate requires: No interruption
BlockOverrideDomain-
The custom DNS record to send back in response to the query. Used for the rule action
BLOCKwith aBlockResponsesetting ofOVERRIDE.Required: No
Type: String
Minimum:
1Maximum:
255Update requires: No interruption
BlockOverrideTtl-
The recommended amount of time, in seconds, for the DNS resolver or web browser to cache the provided override record. Used for the rule action
BLOCKwith aBlockResponsesetting ofOVERRIDE.Required: No
Type: Integer
Update requires: No interruption
BlockResponse-
The way that you want DNS Firewall to block the request. Used for the rule action setting
BLOCK.-
NODATA- Respond indicating that the query was successful, but no response is available for it. -
NXDOMAIN- Respond indicating that the domain name that's in the query doesn't exist. -
OVERRIDE- Provide a custom override in the response. This option requires custom handling details in the rule'sBlockOverride*settings.
Required: No
Type: String
Allowed values:
NODATA | NXDOMAIN | OVERRIDEUpdate requires: No interruption
-
FirewallDomainListId-
The ID of the domain list that's used in the rule.
Required: Yes
Type: String
Minimum:
1Maximum:
64Update requires: No interruption
Priority-
The priority of the rule in the rule group. This value must be unique within the rule group. DNS Firewall processes the rules in a rule group by order of priority, starting from the lowest setting.
Required: Yes
Type: Integer
Update requires: No interruption