firewall_domain_lists
Creates, updates, deletes or gets a firewall_domain_list resource or lists firewall_domain_lists in a region
Overview
| Name | firewall_domain_lists |
| Type | Resource |
| Description | Resource schema for AWS::Route53Resolver::FirewallDomainList. |
| Id | awscc.route53resolver.firewall_domain_lists |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
id | string | ResourceId |
arn | string | Arn |
name | string | FirewallDomainListName |
domain_count | integer | Count |
status | string | ResolverFirewallDomainList, possible values are COMPLETE, DELETING, UPDATING, COMPLETE_IMPORT_FAILED, IMPORTING, and INACTIVE_OWNER_ACCOUNT_CLOSED. |
status_message | string | FirewallDomainListAssociationStatus |
managed_owner_name | string | ServicePrincipal |
creator_request_id | string | The id of the creator request. |
creation_time | string | Rfc3339TimeString |
modification_time | string | Rfc3339TimeString |
domains | array | An inline list of domains to use for this domain list. |
domain_file_url | string | S3 URL to import domains from. |
tags | array | Tags |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
id | string | ResourceId |
region | string | AWS region. |
For more information, see AWS::Route53Resolver::FirewallDomainList.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | firewall_domain_lists | INSERT | region |
delete_resource | firewall_domain_lists | DELETE | Identifier, region |
update_resource | firewall_domain_lists | UPDATE | Identifier, PatchDocument, region |
list_resources | firewall_domain_lists_list_only | SELECT | region |
get_resource | firewall_domain_lists | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
Gets all properties from an individual firewall_domain_list.
SELECT
region,
id,
arn,
name,
domain_count,
status,
status_message,
managed_owner_name,
creator_request_id,
creation_time,
modification_time,
domains,
domain_file_url,
tags
FROM awscc.route53resolver.firewall_domain_lists
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}';
Lists all firewall_domain_lists in a region.
SELECT
region,
id
FROM awscc.route53resolver.firewall_domain_lists_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new firewall_domain_list resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.route53resolver.firewall_domain_lists (
Name,
Domains,
DomainFileUrl,
Tags,
region
)
SELECT
'{{ name }}',
'{{ domains }}',
'{{ domain_file_url }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.route53resolver.firewall_domain_lists (
Name,
Domains,
DomainFileUrl,
Tags,
region
)
SELECT
'{{ name }}',
'{{ domains }}',
'{{ domain_file_url }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: firewall_domain_list
props:
- name: name
value: '{{ name }}'
- name: domains
value:
- '{{ domains[0] }}'
- name: domain_file_url
value: '{{ domain_file_url }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
UPDATE example
Use the following StackQL query and manifest file to update a firewall_domain_list resource, using stack-deploy.
/*+ update */
UPDATE awscc.route53resolver.firewall_domain_lists
SET PatchDocument = string('{{ {
"Domains": domains,
"DomainFileUrl": domain_file_url,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ id }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.route53resolver.firewall_domain_lists
WHERE
Identifier = '{{ id }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
Additional Parameters
Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:
| Parameter | Description |
|---|---|
ClientToken | A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.A client token is valid for 36 hours once used. After that, a resource request with the same client token is treated as a new request. If you do not specify a client token, one is generated for inclusion in the request. |
RoleArn | The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.If you do not specify a role, a temporary session is created using your AWS user credentials. |
TypeVersionId | For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used. |
Permissions
To operate on the firewall_domain_lists resource, the following permissions are required:
- Create
- List
- Read
- Delete
- Update
route53resolver:CreateFirewallDomainList,
route53resolver:GetFirewallDomainList,
route53resolver:ImportFirewallDomains,
route53resolver:UpdateFirewallDomains,
route53resolver:TagResource,
route53resolver:ListTagsForResource
route53resolver:ListFirewallDomainLists,
route53resolver:ListTagsForResource
route53resolver:GetFirewallDomainList,
route53resolver:ListTagsForResource
route53resolver:GetFirewallDomainList,
route53resolver:DeleteFirewallDomainList,
route53resolver:UntagResource,
route53resolver:ListTagsForResource
route53resolver:GetFirewallDomainList,
route53resolver:ImportFirewallDomains,
route53resolver:UpdateFirewallDomains,
route53resolver:TagResource,
route53resolver:UntagResource,
route53resolver:ListTagsForResource