CmdID / aws / aws waf-regional
aws waf-regional update-byte-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 byte match set
The following update-byte-match-set example deletes a ByteMatchTuple object (filter) in a ByteMatchSet. Because the updates value has embedded double quotes, you must surround the value with single quotes.
aws waf-regional update-byte-match-set --cli-binary-format raw-in-base64-out --byte-match-set-id a1b2c3d4-5678-90ab-cdef-EXAMPLE11111 --change-token 12cs345-67cd-890b-1cd2-c3a4567d89f1 --updates 'Action="DELETE",ByteMatchTuple={FieldToMatch={Type="HEADER",Data="referer"},TargetString="badrefer1",TextTransformation="NONE",PositionalConstraint="CONTAINS"}'Identify--cli-binary-formatThe formatting style to be used for binary blobs.--byte-match-set-idThe ByteMatchSetId of the ByteMatchSet that you want to update.--change-tokenThe value returned by the most recent call to GetChangeToken.--updatesAn array of ByteMatchSetUpdate objects that you want to insert into or delete from a ByteMatchSet.Its output
{
"ChangeToken": "12cs345-67cd-890b-1cd2-c3a4567d89f1"
}For more information, see Working with string match conditions in the AWS WAF Developer Guide.
Options
--byte-match-set-idThe ByteMatchSetId of the ByteMatchSet that you want to update.--change-tokenThe value returned by the most recent call to GetChangeToken.--updatesAn array of ByteMatchSetUpdate objects that you want to insert into or delete from a ByteMatchSet.