awscc_wafv2_regex_pattern_set (Resource)

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 .

Example Usage

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"
    }
  ]
}

Schema

Required

Optional

Read-Only

Nested Schema for tags

Optional:

Import

Import is supported using the following syntax:

$ terraform import awscc_wafv2_regex_pattern_set.example <resource ID>