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
Idawscc.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
summary_configurationobject
descriptionstring
tagsarray
regionstringAWS region.

For more information, see AWS::NetworkFirewall::RuleGroup.

Methods

NameResourceAccessible byRequired Params
create_resourcerule_groupsINSERTType, Capacity, RuleGroupName, region
delete_resourcerule_groupsDELETEIdentifier, region
update_resourcerule_groupsUPDATEIdentifier, PatchDocument, region
list_resourcesrule_groups_list_onlySELECTregion
get_resourcerule_groupsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual rule_group.

SELECT
region,
rule_group_name,
rule_group_arn,
rule_group_id,
rule_group,
type,
capacity,
summary_configuration,
description,
tags
FROM awscc.networkfirewall.rule_groups
WHERE
region = '{{ region }}' AND
Identifier = '{{ rule_group_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.networkfirewall.rule_groups (
RuleGroupName,
Type,
Capacity,
region
)
SELECT
'{{ rule_group_name }}',
'{{ type }}',
'{{ capacity }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.networkfirewall.rule_groups
SET PatchDocument = string('{{ {
"RuleGroup": rule_group,
"SummaryConfiguration": summary_configuration,
"Description": description,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ rule_group_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.networkfirewall.rule_groups
WHERE
Identifier = '{{ rule_group_arn }}' 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:

ParameterDescription
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 rule_groups resource, the following permissions are required:

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