--- # generated by https://github.com/hashicorp/terraform-plugin-docs page_title: "awscc_networkfirewall_rule_group Resource - terraform-provider-awscc" subcategory: "" description: |- Resource type definition for AWS::NetworkFirewall::RuleGroup --- # awscc_networkfirewall_rule_group (Resource) Resource type definition for AWS::NetworkFirewall::RuleGroup ## Schema ### Required - `capacity` (Number) - `rule_group_name` (String) - `type` (String) ### Optional - `description` (String) - `rule_group` (Attributes) (see [below for nested schema](#nestedatt--rule_group)) - `tags` (Attributes Set) (see [below for nested schema](#nestedatt--tags)) ### Read-Only - `id` (String) Uniquely identifies the resource. - `rule_group_arn` (String) A resource ARN. - `rule_group_id` (String) ### Nested Schema for `rule_group` Optional: - `rule_variables` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rule_variables)) - `rules_source` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source)) - `stateful_rule_options` (Attributes) (see [below for nested schema](#nestedatt--rule_group--stateful_rule_options)) ### Nested Schema for `rule_group.rule_variables` Optional: - `ip_sets` (Attributes Map) (see [below for nested schema](#nestedatt--rule_group--rule_variables--ip_sets)) - `port_sets` (Attributes Map) (see [below for nested schema](#nestedatt--rule_group--rule_variables--port_sets)) ### Nested Schema for `rule_group.rule_variables.ip_sets` Optional: - `definition` (List of String) ### Nested Schema for `rule_group.rule_variables.port_sets` Optional: - `definition` (List of String) ### Nested Schema for `rule_group.rules_source` Optional: - `rules_source_list` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--rules_source_list)) - `rules_string` (String) - `stateful_rules` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateful_rules)) - `stateless_rules_and_custom_actions` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions)) ### Nested Schema for `rule_group.rules_source.rules_source_list` Optional: - `generated_rules_type` (String) - `target_types` (List of String) - `targets` (List of String) ### Nested Schema for `rule_group.rules_source.stateful_rules` Optional: - `action` (String) - `header` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateful_rules--header)) - `rule_options` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateful_rules--rule_options)) ### Nested Schema for `rule_group.rules_source.stateful_rules.rule_options` Optional: - `destination` (String) - `destination_port` (String) - `direction` (String) - `protocol` (String) - `source` (String) - `source_port` (String) ### Nested Schema for `rule_group.rules_source.stateful_rules.rule_options` Optional: - `keyword` (String) - `settings` (List of String) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions` Optional: - `custom_actions` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--custom_actions)) - `stateless_rules` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules)) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules` Optional: - `action_definition` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--action_definition)) - `action_name` (String) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.action_definition` Optional: - `publish_metric_action` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--action_definition--publish_metric_action)) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.action_definition.publish_metric_action` Optional: - `dimensions` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--action_definition--publish_metric_action--dimensions)) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.action_definition.publish_metric_action.dimensions` Optional: - `value` (String) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules` Optional: - `priority` (Number) - `rule_definition` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition)) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition` Optional: - `actions` (List of String) - `match_attributes` (Attributes) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition--match_attributes)) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes` Optional: - `destination_ports` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition--match_attributes--destination_ports)) - `destinations` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition--match_attributes--destinations)) - `protocols` (List of Number) - `source_ports` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition--match_attributes--source_ports)) - `sources` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition--match_attributes--sources)) - `tcp_flags` (Attributes List) (see [below for nested schema](#nestedatt--rule_group--rules_source--stateless_rules_and_custom_actions--stateless_rules--rule_definition--match_attributes--tcp_flags)) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.tcp_flags` Optional: - `from_port` (Number) - `to_port` (Number) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.tcp_flags` Optional: - `address_definition` (String) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.tcp_flags` Optional: - `from_port` (Number) - `to_port` (Number) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.tcp_flags` Optional: - `address_definition` (String) ### Nested Schema for `rule_group.rules_source.stateless_rules_and_custom_actions.stateless_rules.rule_definition.match_attributes.tcp_flags` Optional: - `flags` (List of String) - `masks` (List of String) ### Nested Schema for `rule_group.stateful_rule_options` Optional: - `rule_order` (String) ### Nested Schema for `tags` Optional: - `key` (String) - `value` (String) ## Import Import is supported using the following syntax: ```shell $ terraform import awscc_networkfirewall_rule_group.example ```