CmdID / aws / aws waf-regional
aws waf-regional update-sql-injection-match-set
This is AWS WAF Classic documentation. AWS CLI reference
1 example 3 options Its page in the AWS CLI reference
Examples
To update a SQL Injection Match Set
The following update-sql-injection-match-set example deletes a SqlInjectionMatchTuple object (filters) in a SQL injection match set. Because the updates value contains embedded double quotes, you must surround the entire value in single quotes.
aws waf-regional update-sql-injection-match-set --sql-injection-match-set-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --change-token 12cs345-67cd-890b-1cd2-c3a4567d89f1 --updates 'Action="DELETE",SqlInjectionMatchTuple={FieldToMatch={Type="QUERY_STRING"},TextTransformation="URL_DECODE"}'Identify--sql-injection-match-set-idThe SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to update.--change-tokenThe value returned by the most recent call to GetChangeToken.--updatesAn array of SqlInjectionMatchSetUpdate objects that you want to insert into or delete from a SqlInjectionMatchSet.Its output
{
"ChangeToken": "12cs345-67cd-890b-1cd2-c3a4567d89f1"
}For more information, see Working with SQL injection match conditions in the AWS WAF Developer Guide.
Options
--change-tokenThe value returned by the most recent call to GetChangeToken.--sql-injection-match-set-idThe SqlInjectionMatchSetId of the SqlInjectionMatchSet that you want to update.--updatesAn array of SqlInjectionMatchSetUpdate objects that you want to insert into or delete from a SqlInjectionMatchSet.