Natural language query processor for advanced queries
The natural language query processor for advanced queries is in preview release for Amazon Config and is subject to change. |
The natural language query processor for advanced queries uses Amazon Bedrock, a generative artificial intelligence (generative AI) technology which allows you to enter prompts in plain English and convert them into a ready-to-use query format. With the natural language query processor, you can query your Amazon Web Services account or across an Amazon organization.
A prompt can be a question or a statement. For example, you can enter prompts such as "Which load balancers are created after January 1, 2024?" and “List all my lambda function that is running node js 16.”
Considerations
The natural language query processor cannot do the following actions:
Generate queries from languages other than English.
Generate queries from prompts that do not relate to advanced queries.
Generate queries from prompts with more than 1000 characters.
Generate queries from follow-up corrections or from previous sessions.
Explain code that has been generated.
Query using the natural language query processor
Sign in to the Amazon Web Services Management Console and open the Amazon Config console at https://console.amazonaws.cn/config/
. -
Choose Advanced queries from the left navigation to query your resource configurations for a single account and Region or for multiple accounts and Regions.
-
On the Advanced queries page, choose New query to go to the Query editor.
(Optional) To run a query on an aggregator, create an aggregator. For more information, see Creating Aggregators.
If you've already set up an aggregator, in the query scope, choose the aggregator to run an advanced query on that aggregator. When you select an aggregator, consider adding the Amazon Web Services account ID and Amazon Region in the query statement to view that information in the results.
-
In the Query editor, go to the Natural language query processor section. Enter a prompt in plain English, and then choose Generate. For examples, see Example prompts.
-
After you generate a query, you can choose Copy (functionally equivalent to Ctrl+C) to copy the query to your clipboard, or choose Populate to editor. If populated to the editor, you can edit the generated query to fit your needs.
-
To save this query to a new query, choose Save As.
-
In the Query Name field, update the name of the query.
-
In the Description field, update the description of the query.
-
Enter up to 50 unique tags for this query.
-
Choose Save.
-
-
Choose Run. The query results display in the table below the query editor.
-
Choose Export as to export the query results in CSV or JSON format.
Note
The query results are paginated. When you export, up to 500 results are exported.
You can also use the APIs to retrieve all the results. The results are paginated and you can retrieve 100 results at a time.
Example prompts
The following are prompts and the generate queries which you can use as examples.
Providing feedback
You can provide overall feedback about the natural language query processor or feedback about a specific generated query.
Providing feedback on the natural language query processor
Choose the Provide feedback button that appears above natural language query processor to the right. You can enter your satisfaction or dissatisfaction and provide feedback on how Amazon Config can make the natural language query more helpful.
Note
Do not disclose any personal, commercially sensitive, or confidential information.
Providing feedback on a specific generated query
You can provide your feedback on a generated query by choose the thumbs up or thumbs down button that appears below the generated query.
Region Support
The natural language query processor is supported in the following Regions.
Region Name | Region | Endpoint | Protocol |
---|---|---|---|
US East (N. Virginia) | us-east-1 | config.us-east-1.amazonaws.com | HTTPS |
US West (Oregon) | us-west-2 | config.us-west-2.amazonaws.com | HTTPS |