AWS Config advanced queries feature adds ability to save your queries in your AWS Config account. Now, when you customize a sample query or write your query, you can save it with a name, description, and tags. This eliminates the need to save a query in a separate repository or rewrite it every time you want to run it. After you save the query, you can search it, copy it to the query editor, edit it, or delete it.
Source:: Amazon AWS