FirewallRule
import type { FirewallRule } from "https://aws-api.deno.dev/v0.3/services/route53resolver.ts?docs=full";
A single firewall rule in a rule group.
§Properties
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, additional handling details are provided in the rule'sBlockResponse
setting.
The DNS record's type.
This determines the format of the record value that you provided in BlockOverrideDomain
.
Used for the rule action BLOCK
with a BlockResponse
setting of OVERRIDE
.
The custom DNS record to send back in response to the query.
Used for the rule action BLOCK
with a BlockResponse
setting of OVERRIDE
.
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 BLOCK
with a BlockResponse
setting of OVERRIDE
.
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.
The date and time that the rule was created, in Unix time format and Coordinated Universal Time (UTC).
A unique string defined by you to identify the request. This allows you to retry failed requests without the risk of executing the operation twice. This can be any unique string, for example, a timestamp.
The unique identifier of the firewall rule group of the rule.