correct implementation of aws filters when sending queries to the API server