CmdID / aws / aws route53resolver
aws route53resolver delete-firewall-rule
Deletes the specified firewall rule. AWS CLI reference
1 example 4 options Its page in the AWS CLI reference
Examples
To delete a firewall rule
The following delete-firewall-rule example deletes a specified firewall rule.
aws route53resolver delete-firewall-rule --firewall-rule-group-id rslvr-frg-47f93271fexample --firewall-domain-list-id rslvr-fdl-9e956e9ffexampleIdentify--firewall-rule-group-idThe unique identifier of the firewall rule group that you want to delete the rule from.--firewall-domain-list-idThe ID of the domain list that's used in the rule.Its output
{
"FirewallRule": {
"FirewallRuleGroupId": "rslvr-frg-47f93271fexample",
"FirewallDomainListId": "rslvr-fdl-9e956e9ffexample",
"Name": "allow-rule",
"Priority": 102,
"Action": "ALLOW",
"CreatorRequestId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
"CreationTime": "2021-05-25T21:44:00.346093Z",
"ModificationTime": "2021-05-25T21:45:59.611600Z"
}
}For more information, see Managing rule groups and rules in DNS Firewall in the Amazon Route 53 Developer Guide.
Options
--firewall-domain-list-idThe ID of the domain list that's used in the rule.--firewall-rule-group-idThe unique identifier of the firewall rule group that you want to delete the rule from.--firewall-threat-protection-idThe ID that is created for a DNS Firewall Advanced rule.--qtypeThe DNS query type that the rule you are deleting evaluates.