Code reference example
Consider that you are building a project that utilizes Amazon DynamoDB as a NoSQL database. Throughout the project, you need to create a DynamoDB table in Python. So, you open an IDE that supports Amazon Q Developer; in our case, we are using VS Code.
In the IDE, we input a prompt to create a function, allowing Amazon Q to auto-generate the code for us to create a DynamoDB table. As soon as we begin typing the function, the auto-suggestion from Amazon Q Developer not only provides us with the code suggestion but also gives us the code reference, indicating at the top that this code sample was from MIT-licensed training data.
In the following screenshot, we have highlighted this code reference provided by Amazon Q.
Figure 11.5 – Amazon Q Developer – code references
Now, keep in mind that code references don’t show up often. They only appear when a particular code suggestion provided by Amazon Q comes from...