2 Respuestas
- Más nuevo
- Más votos
- Más comentarios
0
If you want events that the field is null, you should use "fieldName": [null]
.
If you want events that the field is not null, you should use "fieldName": [ { "anything-but": null } ]
.
0
Hello.
There is no "Not" filter, so why not try using "anything-but" instead?
I thought that by using "anything-but", it would be possible to express that "fieldName" is other than Null.
https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-patterns-content-based-filtering.html#eb-filtering-anything-but
{"fieldName": [{"anything-but": null}]}
Hi Riku, thanks for adding. I do not thik anything-but supports null
Contenido relevante
- OFICIAL DE AWSActualizada hace un año
- OFICIAL DE AWSActualizada hace un año
Hi Uri, I am getting following error while trying this solution.
Event pattern is not valid. Reason: Value of anything-but must be an array or single string/number value.
My bad, sorry. It seems there is no way of doing that. If the field has a known list of values, just include them in the filter.