Skip to main content

rule_groups

Creates, updates, deletes or gets a rule_group resource or lists rule_groups in a region

Overview

Namerule_groups
TypeResource
DescriptionResource type definition for AWS::NetworkFirewall::RuleGroup
Idaws.networkfirewall.rule_groups

Fields

NameDatatypeDescription
rule_group_namestring
rule_group_arnstringA resource ARN.
rule_group_idstring
rule_groupobjectResource type definition for AWS::NetworkFirewall::RuleGroup
typestring
capacityinteger
descriptionstring
tagsarray
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTType, Capacity, RuleGroupName, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all rule_groups in a region.

SELECT
region,
rule_group_name,
rule_group_arn,
rule_group_id,
rule_group,
type,
capacity,
description,
tags
FROM aws.networkfirewall.rule_groups
WHERE region = 'us-east-1';

Gets all properties from an individual rule_group.

SELECT
region,
rule_group_name,
rule_group_arn,
rule_group_id,
rule_group,
type,
capacity,
description,
tags
FROM aws.networkfirewall.rule_groups
WHERE region = 'us-east-1' AND data__Identifier = '<RuleGroupArn>';

INSERT example

Use the following StackQL query and manifest file to create a new rule_group resource, using stack-deploy.

/*+ create */
INSERT INTO aws.networkfirewall.rule_groups (
RuleGroupName,
Type,
Capacity,
region
)
SELECT
'{{ RuleGroupName }}',
'{{ Type }}',
'{{ Capacity }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.networkfirewall.rule_groups
WHERE data__Identifier = '<RuleGroupArn>'
AND region = 'us-east-1';

Permissions

To operate on the rule_groups resource, the following permissions are required:

Create

network-firewall:CreateRuleGroup,
network-firewall:DescribeRuleGroup,
network-firewall:TagResource,
network-firewall:ListRuleGroups,
iam:CreateServiceLinkedRole,
ec2:GetManagedPrefixListEntries

Read

network-firewall:DescribeRuleGroup,
network-firewall:ListTagsForResources

Update

network-firewall:UpdateRuleGroup,
network-firewall:DescribeRuleGroup,
network-firewall:TagResource,
network-firewall:UntagResource,
iam:CreateServiceLinkedRole,
ec2:GetManagedPrefixListEntries

Delete

network-firewall:DeleteRuleGroup,
network-firewall:DescribeRuleGroup,
network-firewall:UntagResource

List

network-firewall:ListRuleGroups