AWSServiceRoleForCodeWhispererPolicy
Description: This role grants permissions to CodeWhisperer to access data in your account to calculate billing, provides access to create and access security reports in Amazon CodeGuru, and emit data to CloudWatch.
AWSServiceRoleForCodeWhispererPolicy
is an AWS managed policy.
Using this policy
This policy is attached to a service-linked role that allows the service to perform actions on your behalf. You cannot attach this policy to your users, groups, or roles.
Policy details
-
Type: Service-linked role policy
-
Creation time: March 24, 2023, 19:39 UTC
-
Edited time: March 29, 2024, 22:13 UTC
-
ARN:
arn:aws:iam::aws:policy/aws-service-role/AWSServiceRoleForCodeWhispererPolicy
Policy version
Policy version: v5 (default)
The policy's default version is the version that defines the permissions for the policy. When a user or role with the policy makes a request to access an AWS resource, AWS checks the default version of the policy to determine whether to allow the request.
JSON policy document
{ "Version" : "2012-10-17", "Statement" : [ { "Sid" : "sid1", "Effect" : "Allow", "Action" : [ "sso-directory:ListMembersInGroup" ], "Resource" : [ "*" ] }, { "Sid" : "sid2", "Effect" : "Allow", "Action" : [ "sso:ListProfileAssociations", "sso:ListProfiles", "sso:ListDirectoryAssociations", "sso:DescribeRegisteredRegions", "sso:GetProfile", "sso:GetManagedApplicationInstance", "sso:ListApplicationAssignments", "sso:DescribeInstance", "sso:DescribeApplication" ], "Resource" : [ "*" ] }, { "Sid" : "sid3", "Effect" : "Allow", "Action" : [ "codeguru-security:CreateUploadUrl" ], "Resource" : [ "*" ] }, { "Sid" : "sid4", "Effect" : "Allow", "Action" : [ "codeguru-security:CreateScan", "codeguru-security:GetScan", "codeguru-security:ListFindings", "codeguru-security:GetFindings" ], "Resource" : [ "arn:aws:codeguru-security:*:*:scans/CodeWhisperer-*" ] }, { "Sid" : "sid5", "Effect" : "Allow", "Action" : [ "cloudwatch:PutMetricData" ], "Resource" : "*", "Condition" : { "StringEquals" : { "cloudwatch:namespace" : [ "AWS/CodeWhisperer" ] } } } ] }