codebuild:CreateWebhook is a Write access-level action in the codebuild service. Grants permission to create webhook. For an existing AWS CodeBuild build project that has its source code stored in a GitHub or Bitbucket repository, enables AWS CodeBuild to start rebuilding the source code every time a code change is pushed to the repository
ARNs that codebuild:CreateWebhook can be scoped to in an IAM policy.
Keys you can use in the Condition block of a policy that grants codebuild:CreateWebhook.
Filters access by actions based on tag key-value pairs attached to the resource
A minimal policy that allows codebuild:CreateWebhook. Replace "Resource": "*" with a specific ARN to follow least privilege.
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "AllowCodebuildCreateWebhook",
"Effect": "Allow",
"Action": "codebuild:CreateWebhook",
"Resource": "*"
}
]
}