Skip to main content

firewall_rule_group_associations

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

Overview

Namefirewall_rule_group_associations
TypeResource
Idaws.route53resolver.firewall_rule_group_associations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the firewall rule group association.
creation_timestringThe date and time that the association 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.
firewall_rule_group_idstringThe unique identifier of the firewall rule group.
idstringThe identifier for the association.
managed_owner_namestringThe owner of the association, used only for associations that are not managed by you. If you use Firewall Manager to manage your DNS Firewalls, then this reports Firewall Manager as the managed owner.
modification_timestringThe date and time that the association was last modified, in Unix time format and Coordinated Universal Time (UTC).
mutation_protectionstringIf enabled, this setting disallows modification or removal of the association, to help prevent against accidentally altering DNS firewall protections. (ENABLED, DISABLED)
namestringThe name of the association. (pattern: <code>(?!^[0-9]+$)([a-zA-Z0-9-_' ']+)</code>)
priorityintegerThe setting that determines the processing order of the rule group among the rule groups that are associated with a single VPC. DNS Firewall filters VPC traffic starting from rule group with the lowest numeric priority setting.
statusstringThe current status of the association. (COMPLETE, DELETING, UPDATING)
status_messagestringAdditional information about the status of the response, if available.
vpc_idstringThe unique identifier of the VPC that is associated with the rule group.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_firewall_rule_group_associationselectregionRetrieves a firewall rule group association, which enables DNS filtering for a VPC with one rule group. A VPC can have more than one firewall rule group association, and a rule group can be associated with more than one VPC.
list_firewall_rule_group_associationsselectregionRetrieves the firewall rule group associations that you have defined. Each association enables DNS filtering for a VPC with one rule group. A single call might return only a partial list of the associations. For information, see MaxResults.
update_firewall_rule_group_associationupdateregion, FirewallRuleGroupAssociationIdChanges the association of a FirewallRuleGroup with a VPC. The association enables DNS filtering for the VPC.

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 a firewall rule group association, which enables DNS filtering for a VPC with one rule group. A VPC can have more than one firewall rule group association, and a rule group can be associated with more than one VPC.

SELECT
arn,
creation_time,
creator_request_id,
firewall_rule_group_id,
id,
managed_owner_name,
modification_time,
mutation_protection,
name,
priority,
status,
status_message,
vpc_id
FROM aws.route53resolver.firewall_rule_group_associations
WHERE region = '{{ region }}' -- required
;

UPDATE examples

Changes the association of a FirewallRuleGroup with a VPC. The association enables DNS filtering for the VPC.

UPDATE aws.route53resolver.firewall_rule_group_associations
SET
FirewallRuleGroupAssociationId = '{{ FirewallRuleGroupAssociationId }}',
Priority = {{ Priority }},
MutationProtection = '{{ MutationProtection }}',
Name = '{{ Name }}'
WHERE
region = '{{ region }}' --required
AND FirewallRuleGroupAssociationId = '{{ FirewallRuleGroupAssociationId }}' --required
RETURNING
firewall_rule_group_association;