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