{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-update-regex-match-set-request-schema.json",
  "title": "UpdateRegexMatchSetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-regex-match-set-api-openapi.yml#/components/schemas/UpdateRegexMatchSetRequest",
  "type": "object",
  "properties": {
    "RegexMatchSetId": {
      "type": "string",
      "description": "The RegexMatchSetId of the RegexMatchSet that you want to update. RegexMatchSetId is returned by CreateRegexMatchSet and by ListRegexMatchSets."
    },
    "Updates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/RegexMatchSetUpdate"
      },
      "description": "An array of RegexMatchSetUpdate objects that you want to insert into or delete from a RegexMatchSet. For more information, see RegexMatchTuple."
    },
    "ChangeToken": {
      "type": "string",
      "description": "The value returned by the most recent call to GetChangeToken."
    }
  },
  "required": [
    "RegexMatchSetId",
    "Updates",
    "ChangeToken"
  ],
  "$defs": {
    "RegexMatchSetUpdate": {
      "type": "object",
      "properties": {
        "Action": {
          "type": "string",
          "enum": [
            "INSERT",
            "DELETE"
          ],
          "description": "Specifies whether to insert or delete a RegexMatchTuple."
        },
        "RegexMatchTuple": {
          "$ref": "#/$defs/RegexMatchTuple"
        }
      },
      "required": [
        "Action",
        "RegexMatchTuple"
      ]
    },
    "RegexMatchTuple": {
      "type": "object",
      "properties": {
        "FieldToMatch": {
          "$ref": "#/$defs/WafFieldToMatch"
        },
        "TextTransformation": {
          "type": "string",
          "enum": [
            "NONE",
            "COMPRESS_WHITE_SPACE",
            "HTML_ENTITY_DECODE",
            "LOWERCASE",
            "CMD_LINE",
            "URL_DECODE"
          ],
          "description": "Text transformations eliminate some of the unusual formatting that attackers use in web requests in an effort to bypass AWS WAF. If you specify a transformation, AWS WAF performs the transformation on RegexPatternSet before inspecting a request for a match. You can only specify a single type of TextTransformation. CMD_LINE When you're concerned that attackers are injecting an operating system commandline command and using unusual formatting to disguise some or all of the command, use this option to perform the following transformations: Delete the following characters: \\ \" ' ^ Delete spaces be"
        },
        "RegexPatternSetId": {
          "type": "string",
          "description": "The RegexPatternSetId for a RegexPatternSet. You use RegexPatternSetId to get information about a RegexPatternSet (see GetRegexPatternSet), update a RegexPatternSet (see UpdateRegexPatternSet), insert a RegexPatternSet into a RegexMatchSet or delete one from a RegexMatchSet (see UpdateRegexMatchSet), and delete an RegexPatternSet from AWS WAF (see DeleteRegexPatternSet). RegexPatternSetId is returned by CreateRegexPatternSet and by ListRegexPatternSets."
        }
      },
      "required": [
        "FieldToMatch",
        "TextTransformation",
        "RegexPatternSetId"
      ]
    },
    "WafFieldToMatch": {
      "type": "object",
      "properties": {
        "Type": {
          "type": "string",
          "enum": [
            "URI",
            "QUERY_STRING",
            "HEADER",
            "METHOD",
            "BODY",
            "SINGLE_QUERY_ARG",
            "ALL_QUERY_ARGS"
          ],
          "description": "The part of the web request that you want AWS WAF to search for a specified string. Parts of a request that you can search include the following: HEADER: A specified request header, for example, the value of the User-Agent or Referer header. If you choose HEADER for the type, specify the name of the header in Data. METHOD: The HTTP method, which indicated the type of operation that the request is asking the origin to perform. Amazon CloudFront supports the following methods: DELETE, GET, HEAD, OPTIONS, PATCH, POST, and PUT. QUERY_STRING: A query string, which is the part of a URL that appears "
        },
        "Data": {
          "type": "string",
          "description": "When the value of Type is HEADER, enter the name of the header that you want AWS WAF to search, for example, User-Agent or Referer. The name of the header is not case sensitive. When the value of Type is SINGLE_QUERY_ARG, enter the name of the parameter that you want AWS WAF to search, for example, UserName or SalesRegion. The parameter name is not case sensitive. If the value of Type is any other value, omit Data."
        }
      },
      "required": [
        "Type"
      ]
    }
  }
}