CmdID / aws / aws route53resolver
aws route53resolver import-firewall-domains
Imports domain names from a file into a domain list, for use in a DNS firewall rule group. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To import domains into a domain list
The following import-firewall-domains example imports a set of domains from a file into a DNS Firewall domain list that you specify.
aws route53resolver import-firewall-domains --firewall-domain-list-id rslvr-fdl-d61cbb2cbexample --operation REPLACE --domain-file-url s3://PATH/TO/YOUR/FILEIdentify--firewall-domain-list-idThe ID of the domain list that you want to modify with the import operation.--operationWhat you want DNS Firewall to do with the domains that are listed in the file.--domain-file-urlThe fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.Its output
{
"Id": "rslvr-fdl-d61cbb2cbexample",
"Name": "test",
"Status": "IMPORTING",
"StatusMessage": "Importing domains from provided file."
}For more information, see Managing your own domain lists in the Amazon Route 53 Developer Guide.
Options
--domain-file-urlThe fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.--firewall-domain-list-idThe ID of the domain list that you want to modify with the import operation.--operationWhat you want DNS Firewall to do with the domains that are listed in the file.