CmdID

CmdID / aws / aws route53resolver

aws route53resolver list-firewall-rules

Retrieves the firewall rules that you have defined for the specified firewall rule group. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To list firewall rules

The following list-firewall-rules example list all of your DNS Firewall rules within a firewall rule group.

aws route53resolver list-firewall-rules --firewall-rule-group-id rslvr-frg-47f93271fexampleIdentify
--firewall-rule-group-idThe unique identifier of the firewall rule group that you want to retrieve the rules for.
Its output
{
    "FirewallRules": [
        {
            "FirewallRuleGroupId": "rslvr-frg-47f93271fexample",
            "FirewallDomainListId": "rslvr-fdl-9e956e9ffexample",
            "Name": "allow-rule",
            "Priority": 101,
            "Action": "ALLOW",
            "CreatorRequestId": "a1b2c3d4-5678-90ab-cdef-EXAMPLE11111",
            "CreationTime": "2021-05-25T21:44:00.346093Z",
            "ModificationTime": "2021-05-25T21:44:00.346093Z"
        }
    ]
}

For more information, see Managing rule groups and rules in DNS Firewall in the Amazon Route 53 Developer Guide.

Options

4 in the AWS CLI reference
--firewall-rule-group-idThe unique identifier of the firewall rule group that you want to retrieve the rules for.
--max-resultsThe maximum number of objects that you want Resolver to return for this request.
--next-tokenFor the first call to this list request, omit this value.
--priority, --actionOptional additional filter for the rules to retrieve.