Resource: aws_wafregional_regex_match_set

Provides a WAF Regional Regex Match Set Resource

Example Usage

resource "aws_wafregional_regex_match_set" "example" {
  name = "example"

  regex_match_tuple {
    field_to_match {
      data = "User-Agent"
      type = "HEADER"
    }

    regex_pattern_set_id = aws_wafregional_regex_pattern_set.example.id
    text_transformation  = "NONE"
  }
}

resource "aws_wafregional_regex_pattern_set" "example" {
  name                  = "example"
  regex_pattern_strings = ["one", "two"]
}

Argument Reference

This resource supports the following arguments:

Nested Arguments

regex_match_tuple

field_to_match

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import WAF Regional Regex Match Set using the id. For example:

import {
  to = aws_wafregional_regex_match_set.example
  id = "a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc"
}

Using terraform import, import WAF Regional Regex Match Set using the id. For example:

% terraform import aws_wafregional_regex_match_set.example a1b2c3d4-d5f6-7777-8888-9999aaaabbbbcccc