Contains a list of Regular expressions based on the provided inputs. RegexPatternSet can be used with other WAF entities with RegexPatternSetReferenceStatement to perform other actions .
Creates a regex pattern set with REGIONAL scope. Please ensure that the region is set to us-east-1
if the scope is set to be CLOUDFRONT
.
resource "awscc_wafv2_regex_pattern_set" "example" {
regular_expression_list = [
"I[a@]mAB[a@]dRequest",
"^foobar$"
]
name = "example"
description = "Example regex pattern set"
scope = "REGIONAL"
tags = [
{
key = "ModifiedBy"
value = "AWSCC"
}
]
}
regular_expression_list
(List of String)scope
(String) Use CLOUDFRONT for CloudFront RegexPatternSet, use REGIONAL for Application Load Balancer and API Gateway.description
(String) Description of the entity.name
(String) Name of the RegexPatternSet.tags
(Attributes List) (see below for nested schema)arn
(String) ARN of the WAF entity.id
(String) Uniquely identifies the resource.regex_pattern_set_id
(String) Id of the RegexPatternSettags
Optional:
key
(String)value
(String)Import is supported using the following syntax:
$ terraform import awscc_wafv2_regex_pattern_set.example <resource ID>