Using CodeWhisperer with other services - CodeWhisperer

CodeWhisperer's features are becoming a part of Amazon Q Developer. Learn more

Using CodeWhisperer with other services

AWS Identity and Access Management permissions for other services

For CodeWhisperer to provide recommendations in the context of another service, you must enable the correct IAM permissions for either your IAM user or role. You must add the codewhisperer:GenerateRecommendations permission, as outlined in the sample IAM policy below:

{ "Version": "2012-10-17", "Statement": [ { "Sid": "CodeWhispererPermissions", "Effect": "Allow", "Action": ["codewhisperer:GenerateRecommendations"], "Resource": "*" } ] }

It is best practice to use IAM policies to grant restrictive permissions to IAM principals. For details about working with IAM, see Security best practices in the IAM user guide.