Provides a WAF Regional Rule Group Resource
resource "aws_wafregional_rule" "example" { name = "example" metric_name = "example" } resource "aws_wafregional_rule_group" "example" { name = "example" metric_name = "example" activated_rule { action { type = "COUNT" } priority = 50 rule_id = "${aws_wafregional_rule.example.id}" } }
The following arguments are supported:
name
- (Required) A friendly name of the rule group metric_name
- (Required) A friendly name for the metrics from the rule group activated_rule
- (Optional) A list of activated rules, see below activated_rule
action
- (Required) Specifies the action that CloudFront or AWS WAF takes when a web request matches the conditions in the rule. type
- (Required) e.g. BLOCK
, ALLOW
, or COUNT
priority
- (Required) Specifies the order in which the rules are evaluated. Rules with a lower value are evaluated before rules with a higher value. rule_id
- (Required) The ID of a rule type
- (Optional) The rule type, either REGULAR
, [RATE_BASED
]((/docs/providers/aws/r/wafregional_rate_based_rule.html), or GROUP
. Defaults to REGULAR
. In addition to all arguments above, the following attributes are exported:
id
- The ID of the WAF Regional Rule Group.
© 2018 HashiCorpLicensed under the MPL 2.0 License.
https://www.terraform.io/docs/providers/aws/r/wafregional_rule_group.html