本文属于机器翻译版本。若本译文内容与英语原文存在差异,则一律以英文原文为准。
AmazonCodeGuruReviewerServiceRolePolicy
描述:Amazon CodeGuru Reviewer 代表您访问资源所需的服务相关角色。
AmazonCodeGuruReviewerServiceRolePolicy
是一个AWS 托管策略。
使用此策略
此附加到服务相关角色的策略允许服务代表您执行操作。您无法将此策略附加到您的用户、组或角色。
策略详细信息
-
类型:服务相关角色策略
-
创建时间:2019 年 12 月 3 日 05:31 UTC
-
编辑时间:2020 年 11 月 27 日 15:09 UTC
-
ARN:
arn:aws:iam::aws:policy/aws-service-role/AmazonCodeGuruReviewerServiceRolePolicy
策略版本
策略版本:v4(默认)
此策略的默认版本是定义策略权限的版本。当使用该策略的用户或角色请求访问 AWS 资源时, AWS 会检查策略的默认版本以确定是否允许该请求。
JSON 策略文档
{ "Version" : "2012-10-17", "Statement" : [ { "Sid" : "AccessCodeGuruReviewerEnabledRepositories", "Effect" : "Allow", "Action" : [ "codecommit:GetRepository", "codecommit:GetBranch", "codecommit:DescribePullRequestEvents", "codecommit:GetCommentsForPullRequest", "codecommit:GetDifferences", "codecommit:GetPullRequest", "codecommit:ListPullRequests", "codecommit:PostCommentForPullRequest", "codecommit:GitPull", "codecommit:UntagResource" ], "Resource" : "*", "Condition" : { "StringLike" : { "aws:ResourceTag/codeguru-reviewer" : "enabled" } } }, { "Sid" : "AccessCodeGuruReviewerEnabledConnections", "Effect" : "Allow", "Action" : [ "codestar-connections:UseConnection" ], "Resource" : "*", "Condition" : { "ForAllValues:StringEquals" : { "codestar-connections:ProviderAction" : [ "ListBranches", "GetBranch", "ListRepositories", "ListOwners", "ListPullRequests", "GetPullRequest", "ListPullRequestComments", "ListPullRequestCommits", "ListCommitFiles", "ListBranchCommits", "CreatePullRequestDiffComment", "GitPull" ] }, "Null" : { "aws:ResourceTag/codeguru-reviewer" : "false" } } }, { "Sid" : "CloudWatchEventsResourceCleanup", "Effect" : "Allow", "Action" : [ "events:DeleteRule", "events:RemoveTargets" ], "Resource" : "*", "Condition" : { "StringEquals" : { "events:ManagedBy" : "codeguru-reviewer.amazonaws.com" } } }, { "Sid" : "AllowGuruS3GetObject", "Effect" : "Allow", "Action" : [ "s3:GetObject" ], "Resource" : [ "arn:aws:s3:::codeguru-reviewer-*", "arn:aws:s3:::codeguru-reviewer-*/*" ] } ] }