Route53Resolver.Client.
import_firewall_domains
(**kwargs)¶Imports domain names from a file into a domain list, for use in a DNS firewall rule group.
Each domain specification in your domain list must satisfy the following requirements:
*
(asterisk).A-Z
, a-z
, 0-9
, -
(hyphen).See also: AWS API Documentation
Request Syntax
response = client.import_firewall_domains(
FirewallDomainListId='string',
Operation='REPLACE',
DomainFileUrl='string'
)
[REQUIRED]
The ID of the domain list that you want to modify with the import operation.
[REQUIRED]
What you want DNS Firewall to do with the domains that are listed in the file. This must be set to REPLACE
, which updates the domain list to exactly match the list in the file.
[REQUIRED]
The fully qualified URL or URI of the file stored in Amazon Simple Storage Service (Amazon S3) that contains the list of domains to import.
The file must be in an S3 bucket that's in the same Region as your DNS Firewall. The file must be a text file and must contain a single domain per line.
dict
Response Syntax
{
'Id': 'string',
'Name': 'string',
'Status': 'COMPLETE'|'COMPLETE_IMPORT_FAILED'|'IMPORTING'|'DELETING'|'UPDATING',
'StatusMessage': 'string'
}
Response Structure
(dict) --
Id (string) --
The Id of the firewall domain list that DNS Firewall just updated.
Name (string) --
The name of the domain list.
Status (string) --
Status of the import request.
StatusMessage (string) --
Additional information about the status of the list, if available.
Exceptions
Route53Resolver.Client.exceptions.ValidationException
Route53Resolver.Client.exceptions.AccessDeniedException
Route53Resolver.Client.exceptions.ResourceNotFoundException
Route53Resolver.Client.exceptions.LimitExceededException
Route53Resolver.Client.exceptions.ConflictException
Route53Resolver.Client.exceptions.InternalServiceErrorException
Route53Resolver.Client.exceptions.ThrottlingException