Amazon CodeGuru

Machine learning service to automate code review and provide performance recommendation

Amazon Code Guru
Components of Amazon CodeGuru

Amazon CodeGuru Reviewer

Amazon CodeGuru Profiler

Agent permissions

{"Version": "2012-10-17","Statement": [{"Effect": "Allow","Action": ["codeguru-profiler:ConfigureAgent","codeguru-profiler:PostAgentProfile"],"Resource": "arn:aws:codeguru-profiler:us-east-1:<accountID>:profilingGroup/codeguru-profile"}]}
<repositories><repository><id>codeguru-profiler</id><name>codeguru-profiler</name><url>https://<cloudfronturl.net></url></repository></repositories>
<dependencies><dependency><groupId>com.amazonaws</groupId><artifactId>codeguru-profiler-java-agent</artifactId><version>0.1.0</version></dependency></dependencies>
//Add the following import:
import software.amazon.codeguruprofilerjavaagent.Profiler;
//Add the following code to the public static void main functionnew Profiler.Builder().profilingGroupName("codeguru-profile").build().start()//Optionally, you can use custom AWS credentials
new Profiler.Builder().profilingGroupName("codeguru-profile").awsCredentialsProvider(myAwsCredentialsProvider).build().start();

AWS/GCP Certified Solution architect Professional