Skip to main content

firewall_domains

Creates, updates, deletes, gets or lists a firewall_domains resource.

Overview

Namefirewall_domains
TypeResource
Idaws.route53globalresolver.firewall_domains

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
domainstringList of domains in the specified domain list.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_firewall_domainsselectfirewall_domain_list_id, regionmax_results, next_tokenLists all the domains in DNS Firewall domain list you have created. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.
update_firewall_domainsupdatefirewall_domain_list_id, region, domains, operationUpdates a DNS Firewall domain list from an array of specified domains. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.
import_firewall_domainsexecfirewall_domain_list_id, region, domainFileUrl, operationImports a list of domains from an Amazon S3 file into a firewall domain list. The file should contain one domain per line. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
firewall_domain_list_idstringID of the DNS Firewall domain list that you want to import the domain list to.
regionstringAWS region (default: us-east-1)
max_resultsintegerThe maximum number of results to retrieve in a single call.
next_tokenstringA pagination token used for large sets of results that can't be returned in a single response.

SELECT examples

Lists all the domains in DNS Firewall domain list you have created. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.

SELECT
domain
FROM aws.route53globalresolver.firewall_domains
WHERE firewall_domain_list_id = '{{ firewall_domain_list_id }}' -- required
AND region = '{{ region }}' -- required
AND max_results = '{{ max_results }}'
AND next_token = '{{ next_token }}'
;

UPDATE examples

Updates a DNS Firewall domain list from an array of specified domains. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.

UPDATE aws.route53globalresolver.firewall_domains
SET
domains = '{{ domains }}',
operation = '{{ operation }}'
WHERE
firewall_domain_list_id = '{{ firewall_domain_list_id }}' --required
AND region = '{{ region }}' --required
AND domains = '{{ domains }}' --required
AND operation = '{{ operation }}' --required
RETURNING
id,
name,
status;

Lifecycle Methods

Imports a list of domains from an Amazon S3 file into a firewall domain list. The file should contain one domain per line. Route 53 Global Resolver is a global service that supports resolvers in multiple Amazon Web Services Regions but you must specify the US East (Ohio) Region to create, update, or otherwise work with Route 53 Global Resolver resources. That is, for example, specify --region us-east-2 on Amazon Web Services CLI commands.

EXEC aws.route53globalresolver.firewall_domains.import_firewall_domains
@firewall_domain_list_id='{{ firewall_domain_list_id }}' --required,
@region='{{ region }}' --required
@@json=
'{
"domainFileUrl": "{{ domainFileUrl }}",
"operation": "{{ operation }}"
}'
;