Skip to main content

firewall_rule_groups

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

Overview

Namefirewall_rule_groups
TypeResource
Idaws.route53resolver.firewall_rule_groups

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe ARN (Amazon Resource Name) of the rule group.
creation_timestringThe date and time that the rule group was created, in Unix time format and Coordinated Universal Time (UTC).
creator_request_idstringA unique string defined by you to identify the request. This allows you to retry failed requests without the risk of running the operation twice. This can be any unique string, for example, a timestamp.
idstringThe ID of the rule group.
modification_timestringThe date and time that the rule group was last modified, in Unix time format and Coordinated Universal Time (UTC).
namestringThe name of the rule group. (pattern: <code>(?!^[0-9]+$)([a-zA-Z0-9-_' ']+)</code>)
owner_idstringThe Amazon Web Services account ID for the account that created the rule group. When a rule group is shared with your account, this is the account that has shared the rule group with you.
rule_countintegerThe number of rules in the rule group.
share_statusstringWhether the rule group is shared with other Amazon Web Services accounts, or was shared with the current account by another Amazon Web Services account. Sharing is configured through Resource Access Manager (RAM). (NOT_SHARED, SHARED_WITH_ME, SHARED_BY_ME)
statusstringThe status of the domain list. (COMPLETE, DELETING, UPDATING)
status_messagestringAdditional information about the status of the rule group, if available.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_firewall_rule_groupselectregionRetrieves the specified firewall rule group.
list_firewall_rule_groupsselectregionRetrieves the minimal high-level information for the rule groups that you have defined. A single call might return only a partial list of the rule groups. For information, see MaxResults.
create_firewall_rule_groupinsertregion, CreatorRequestIdCreates an empty DNS Firewall rule group for filtering DNS network traffic in a VPC. You can add rules to the new rule group by calling CreateFirewallRule.
associate_firewall_rule_groupupdateregion, CreatorRequestId, FirewallRuleGroupId, VpcId, PriorityAssociates a FirewallRuleGroup with a VPC, to provide DNS filtering for the VPC. If the rule group contains any rule configured with the PartnerThreatProtection rule type, the calling account must hold an active AWS Marketplace subscription to the named partner. If the subscription is missing, the association request is rejected.
disassociate_firewall_rule_groupupdateregion, FirewallRuleGroupAssociationIdDisassociates a FirewallRuleGroup from a VPC, to remove DNS filtering from the VPC.
delete_firewall_rule_groupdeleteregionDeletes the specified firewall rule group.

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
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves the specified firewall rule group.

SELECT
arn,
creation_time,
creator_request_id,
id,
modification_time,
name,
owner_id,
rule_count,
share_status,
status,
status_message
FROM aws.route53resolver.firewall_rule_groups
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates an empty DNS Firewall rule group for filtering DNS network traffic in a VPC. You can add rules to the new rule group by calling CreateFirewallRule.

INSERT INTO aws.route53resolver.firewall_rule_groups (
CreatorRequestId,
Name,
Tags,
region
)
SELECT
'{{ CreatorRequestId }}' /* required */,
'{{ Name }}',
'{{ Tags }}',
'{{ region }}'
RETURNING
firewall_rule_group
;

UPDATE examples

Associates a FirewallRuleGroup with a VPC, to provide DNS filtering for the VPC. If the rule group contains any rule configured with the PartnerThreatProtection rule type, the calling account must hold an active AWS Marketplace subscription to the named partner. If the subscription is missing, the association request is rejected.

UPDATE aws.route53resolver.firewall_rule_groups
SET
CreatorRequestId = '{{ CreatorRequestId }}',
FirewallRuleGroupId = '{{ FirewallRuleGroupId }}',
VpcId = '{{ VpcId }}',
Priority = {{ Priority }},
Name = '{{ Name }}',
MutationProtection = '{{ MutationProtection }}',
Tags = '{{ Tags }}'
WHERE
region = '{{ region }}' --required
AND CreatorRequestId = '{{ CreatorRequestId }}' --required
AND FirewallRuleGroupId = '{{ FirewallRuleGroupId }}' --required
AND VpcId = '{{ VpcId }}' --required
AND Priority = '{{ Priority }}' --required
RETURNING
firewall_rule_group_association;

DELETE examples

Deletes the specified firewall rule group.

DELETE FROM aws.route53resolver.firewall_rule_groups
WHERE region = '{{ region }}' --required
;