Skip to main content

firewall_domain_lists

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

Overview

Namefirewall_domain_lists
TypeResource
Idaws.route53globalresolver.firewall_domain_lists

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringID of the domain list. (pattern: <code>[-.a-zA-Z0-9]+</code>)
namestringName of the domain list. (pattern: <code>(?!^[0-9]+$)([a-zA-Z0-9-_/' ']+)</code>)
arnstringAmazon Resource Name (ARN) of the domain list. (pattern: <code>arn:[-.a-z0-9]{1,63}:[-.a-z0-9]{1,63}:[-.a-z0-9]{0,63}:[-.a-z0-9]{0,63}:[^/].{0,1023}</code>)
client_tokenstringA unique, case-sensitive identifier to ensure idempotency. This means that making the same request multiple times with the same clientToken has the same result every time.
created_atstring (date-time)The time and date the domain list was created.
descriptionstringThe description of the domain list.
domain_countintegerNumber of domains in the domain list.
global_resolver_idstringID of the Global Resolver that the domain list is associated to. (pattern: <code>[-.a-zA-Z0-9]+</code>)
statusstringOperational status of the domain list. (CREATING, OPERATIONAL, UPDATING, DELETING)
status_messagestringAdditional information about the status of the domain list.
updated_atstring (date-time)The date and time the domain list was updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_firewall_domain_listselectfirewall_domain_list_id, regionRetrieves information about a firewall domain list. 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.
list_firewall_domain_listsselectregionmax_results, next_token, global_resolver_idLists all firewall domain lists for a Route 53 Global Resolver with pagination support. 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.
create_firewall_domain_listinsertglobal_resolver_id, region, nameCreates a firewall domain list. Domain lists are reusable sets of domain specifications that you use in DNS firewall rules to allow, block, or alert on DNS queries to specific 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.
delete_firewall_domain_listdeletefirewall_domain_list_id, regionDeletes a firewall domain list. This operation cannot be undone. 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_idstringThe unique identifier of the firewall domain list to delete.
global_resolver_idstringThe ID of the Route 53 Global Resolver that the domain list will be associated with.
regionstringAWS region (default: us-east-1)
global_resolver_idstringThe ID of the Global Resolver that contains the DNS view the domain lists are associated to.
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

Retrieves information about a firewall domain list. 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
id,
name,
arn,
client_token,
created_at,
description,
domain_count,
global_resolver_id,
status,
status_message,
updated_at
FROM aws.route53globalresolver.firewall_domain_lists
WHERE firewall_domain_list_id = '{{ firewall_domain_list_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a firewall domain list. Domain lists are reusable sets of domain specifications that you use in DNS firewall rules to allow, block, or alert on DNS queries to specific 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.

INSERT INTO aws.route53globalresolver.firewall_domain_lists (
clientToken,
description,
name,
tags,
global_resolver_id,
region
)
SELECT
'{{ clientToken }}',
'{{ description }}',
'{{ name }}' /* required */,
'{{ tags }}',
'{{ global_resolver_id }}',
'{{ region }}'
RETURNING
id,
name,
arn,
created_at,
description,
domain_count,
global_resolver_id,
status,
updated_at
;

DELETE examples

Deletes a firewall domain list. This operation cannot be undone. 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.

DELETE FROM aws.route53globalresolver.firewall_domain_lists
WHERE firewall_domain_list_id = '{{ firewall_domain_list_id }}' --required
AND region = '{{ region }}' --required
;