Provides a WAF Regional Regex Pattern Set Resource
resource "aws_wafregional_regex_pattern_set" "example" {
name = "example"
regex_pattern_strings = ["one", "two"]
}
This resource supports the following arguments:
name
- (Required) The name or description of the Regex Pattern Set.regex_pattern_strings
- (Optional) A list of regular expression (regex) patterns that you want AWS WAF to search for, such as B[a@]dB[o0]t
.This resource exports the following attributes in addition to the arguments above:
id
- The ID of the WAF Regional Regex Pattern Set.In Terraform v1.5.0 and later, use an import
block to import WAF Regional Regex Pattern Set using the id. For example:
import {
to = aws_wafregional_regex_pattern_set.example
id = "a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc"
}
Using terraform import
, import WAF Regional Regex Pattern Set using the id. For example:
% terraform import aws_wafregional_regex_pattern_set.example a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc