{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-waf/json-schema/aws-waf-update-xss-match-set-request-schema.json",
  "title": "UpdateXssMatchSetRequest",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-waf-xss-match-set-api-openapi.yml#/components/schemas/UpdateXssMatchSetRequest",
  "type": "object",
  "properties": {
    "XssMatchSetId": {
      "type": "string",
      "description": "The XssMatchSetId of the XssMatchSet that you want to update. XssMatchSetId is returned by CreateXssMatchSet and by ListXssMatchSets."
    },
    "ChangeToken": {
      "type": "string",
      "description": "The value returned by the most recent call to GetChangeToken."
    },
    "Updates": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/XssMatchSetUpdate"
      },
      "description": "An array of XssMatchSetUpdate objects that you want to insert into or delete from an XssMatchSet. For more information, see the applicable data types: XssMatchSetUpdate: Contains Action and XssMatchTuple XssMatchTuple: Contains FieldToMatch and TextTransformation FieldToMatch: Contains Data and Type"
    }
  },
  "required": [
    "XssMatchSetId",
    "ChangeToken",
    "Updates"
  ],
  "$defs": {
    "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"
      ]
    },
    "XssMatchSetUpdate": {
      "type": "object",
      "properties": {
        "Action": {
          "type": "string",
          "enum": [
            "INSERT",
            "DELETE"
          ],
          "description": "Specify INSERT to add an XssMatchSetUpdate to an XssMatchSet. Use DELETE to remove an XssMatchSetUpdate from an XssMatchSet."
        },
        "XssMatchTuple": {
          "$ref": "#/$defs/XssMatchTuple"
        }
      },
      "required": [
        "Action",
        "XssMatchTuple"
      ]
    },
    "XssMatchTuple": {
      "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 FieldToMatch before inspecting it 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 command line 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 before the "
        }
      },
      "required": [
        "FieldToMatch",
        "TextTransformation"
      ]
    }
  }
}