Resource: aws_waf_xss_match_set

Provides a WAF XSS Match Set Resource

Example Usage

resource "aws_waf_xss_match_set" "xss_match_set" {
  name = "xss_match_set"

  xss_match_tuples {
    text_transformation = "NONE"

    field_to_match {
      type = "URI"
    }
  }

  xss_match_tuples {
    text_transformation = "NONE"

    field_to_match {
      type = "QUERY_STRING"
    }
  }
}

Argument Reference

This resource supports the following arguments:

Nested Blocks

xss_match_tuples

field_to_match

Arguments

Remarks

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 XSS Match Set using their ID. For example:

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

Using terraform import, import WAF XSS Match Set using their ID. For example:

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