CmdID

CmdID / aws / aws waf-regional

aws waf-regional update-xss-match-set

This is AWS WAF Classic documentation. AWS CLI reference

1 example 3 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To update an XSSMatchSet

The following update-xss-match-set example deletes an XssMatchTuple object (filters) in an XssMatchSet. Because the updates value contains embedded double quotes, you must surround the entire value with single quotes.

aws waf-regional update-xss-match-set --xss-match-set-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --change-token 12cs345-67cd-890b-1cd2-c3a4567d89f1 --updates 'Action="DELETE",XssMatchTuple={FieldToMatch={Type="QUERY_STRING"},TextTransformation="URL_DECODE"}'Identify
--xss-match-set-idThe XssMatchSetId of the XssMatchSet that you want to update.
--change-tokenThe value returned by the most recent call to GetChangeToken.
--updatesAn array of XssMatchSetUpdate objects that you want to insert into or delete from an XssMatchSet.
Its output
{
    "ChangeToken": "12cs345-67cd-890b-1cd2-c3a4567d89f1"
}

For more information, see Working with cross-site scripting match conditions in the AWS WAF, AWS Firewall Manager, and AWS Shield Advanced Developer Guide.

Options

3 in the AWS CLI reference
--change-tokenThe value returned by the most recent call to GetChangeToken.
--updatesAn array of XssMatchSetUpdate objects that you want to insert into or delete from an XssMatchSet.
--xss-match-set-idThe XssMatchSetId of the XssMatchSet that you want to update.