Amazon CodeWhisperer Documentation

Code suggestions

Trained on Amazon and publicly available code, Amazon CodeWhisperer is designed to understand comments written in natural language (in English) and generate code suggestions. The service suggests functions and logical blocks of code in the integrated development environments (IDE) code editor. You can accept the top suggestion, view more suggestions, or continue writing your own code. Always review a code suggestion before accepting them, and you may need to edit it to do what you intended. As you type, CodeWhisperer is designed to provide suggestions to complete the comment itself.

For use with AWS services

CodeWhisperer helps developers use AWS services by providing code suggestions for AWS APIs. As you write code in your IDE, CodeWhisperer is designed to analyze your code and comments, make a suggestion for the desired functionality, and recommend code snippets.

Security scans

With CodeWhisperer, you can scan projects to detect vulnerabilities. The service is designed to analyze existing code in the IDE (whether generated by CodeWhisperer or written by you), identify potentially problematic code, and provide suggestions on how to remediate it.

Reference tracker for open-source code

CodeWhisperer provides a reference tracker that is designed to detect whether a code suggestion might resemble open-source training data and can flag such suggestions. These suggestions are annotated with the open-source project’s repository URL, file reference, and license information so that you can review before deciding whether to incorporate the suggested code. All flagged suggestions that you used are logged so that you can review later and add license attribution at your discretion. You can also opt to filter out all code suggestions that CodeWhisperer determines resemble open-source code.

Bias avoidance

CodeWhisperer is designed to help developers avoid bias by filtering out code suggestions that might be considered biased and unfair.

Enterprise administration

Provide users or groups access to CodeWhisperer using single sign-on (SSO) with AWS IAM Identity Center integration. Manage group-wide policies, such as including suggestions with referenced code.

Additional Information

For additional information about service controls, security features and functionalities, including, as applicable, information about storing, retrieving, modifying, restricting, and deleting data, please see https://docs.aws.amazon.com/index.html. This additional information does not form part of the Documentation for purposes of the AWS Customer Agreement available at http://aws.amazon.com/agreement, or other agreement between you and AWS governing your use of AWS’s services.