AWS CodeBuild · Schema

CreateWebhookInput

Amazon Web ServicesBuildsCI/CDContinuous IntegrationDeveloper ToolsDevOps

Properties

Name Type Description
projectName string The name of the CodeBuild project.
branchFilter string A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is emp
filterGroups array An array of arrays of WebhookFilter objects used to determine which webhooks are triggered. At least one WebhookFilter in the array must specify EVENT as its type. For a build to be triggered, at leas
buildType string Specifies the type of build this webhook will trigger. RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about Co
manualCreation boolean If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook. The payloadUrl and secret values in the output can be used to
scopeConfiguration object
pullRequestBuildPolicy object
View JSON Schema on GitHub

JSON Schema

aws-codebuild-create-webhook-input-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/aws-codebuild/json-schema/aws-codebuild-create-webhook-input-schema.json",
  "title": "CreateWebhookInput",
  "x-generated": "2026-11-11",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/aws-codebuild-aws-codebuild-x-amz-target-codebuild-api-openapi.yml#/components/schemas/CreateWebhookInput",
  "type": "object",
  "properties": {
    "projectName": {
      "type": "string",
      "description": "The name of the CodeBuild project."
    },
    "branchFilter": {
      "type": "string",
      "description": "A regular expression used to determine which repository branches are built when a webhook is triggered. If the name of a branch matches the regular expression, then it is built. If branchFilter is empty, then all branches are built. It is recommended that you use filterGroups instead of branchFilter."
    },
    "filterGroups": {
      "type": "array",
      "items": {
        "type": "array",
        "items": {
          "$ref": "#/$defs/WebhookFilter"
        }
      },
      "description": "An array of arrays of WebhookFilter objects used to determine which webhooks are triggered. At least one WebhookFilter in the array must specify EVENT as its type. For a build to be triggered, at least one filter group in the filterGroups array must pass. For a filter group to pass, each of its filters must pass."
    },
    "buildType": {
      "type": "string",
      "enum": [
        "BUILD",
        "BUILD_BATCH",
        "RUNNER_BUILDKITE_BUILD"
      ],
      "description": "Specifies the type of build this webhook will trigger. RUNNER_BUILDKITE_BUILD is only available for NO_SOURCE source type projects configured for Buildkite runner builds. For more information about CodeBuild-hosted Buildkite runner builds, see Tutorial: Configure a CodeBuild-hosted Buildkite runner in the CodeBuild user guide."
    },
    "manualCreation": {
      "type": "boolean",
      "description": "If manualCreation is true, CodeBuild doesn't create a webhook in GitHub and instead returns payloadUrl and secret values for the webhook. The payloadUrl and secret values in the output can be used to manually create a webhook within GitHub. manualCreation is only available for GitHub webhooks."
    },
    "scopeConfiguration": {
      "$ref": "#/$defs/ScopeConfiguration"
    },
    "pullRequestBuildPolicy": {
      "$ref": "#/$defs/PullRequestBuildPolicy"
    }
  },
  "required": [
    "projectName"
  ],
  "$defs": {
    "PullRequestBuildPolicy": {
      "type": "object",
      "properties": {
        "requiresCommentApproval": {
          "type": "string",
          "enum": [
            "DISABLED",
            "ALL_PULL_REQUESTS",
            "FORK_PULL_REQUESTS"
          ],
          "description": "Specifies when comment-based approval is required before triggering a build on pull requests. This setting determines whether builds run automatically or require explicit approval through comments. DISABLED: Builds trigger automatically without requiring comment approval ALL_PULL_REQUESTS: All pull requests require comment approval before builds execute (unless contributor is one of the approver roles) FORK_PULL_REQUESTS: Only pull requests from forked repositories require comment approval (unless contributor is one of the approver roles)"
        },
        "approverRoles": {
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "GITHUB_READ",
              "GITHUB_TRIAGE",
              "GITHUB_WRITE",
              "GITHUB_MAINTAIN",
              "GITHUB_ADMIN",
              "GITLAB_GUEST",
              "GITLAB_PLANNER",
              "GITLAB_REPORTER",
              "GITLAB_DEVELOPER",
              "GITLAB_MAINTAINER",
              "GITLAB_OWNER",
              "BITBUCKET_READ",
              "BITBUCKET_WRITE",
              "BITBUCKET_ADMIN"
            ]
          },
          "description": "List of repository roles that have approval privileges for pull request builds when comment approval is required. Only users with these roles can provide valid comment approvals. If a pull request contributor is one of these roles, their pull request builds will trigger automatically. This field is only applicable when requiresCommentApproval is not DISABLED."
        }
      },
      "required": [
        "requiresCommentApproval"
      ]
    },
    "ScopeConfiguration": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string",
          "description": "The name of either the group, enterprise, or organization that will send webhook events to CodeBuild, depending on the type of webhook."
        },
        "domain": {
          "type": "string",
          "description": "The domain of the GitHub Enterprise organization or the GitLab Self Managed group. Note that this parameter is only required if your project's source type is GITHUB_ENTERPRISE or GITLAB_SELF_MANAGED."
        },
        "scope": {
          "type": "string",
          "enum": [
            "GITHUB_ORGANIZATION",
            "GITHUB_GLOBAL",
            "GITLAB_GROUP"
          ],
          "description": "The type of scope for a GitHub or GitLab webhook. The scope default is GITHUB_ORGANIZATION."
        }
      },
      "required": [
        "name",
        "scope"
      ]
    },
    "WebhookFilter": {
      "type": "object",
      "properties": {
        "type": {
          "type": "string",
          "enum": [
            "EVENT",
            "BASE_REF",
            "HEAD_REF",
            "ACTOR_ACCOUNT_ID",
            "FILE_PATH",
            "COMMIT_MESSAGE",
            "WORKFLOW_NAME",
            "TAG_NAME",
            "RELEASE_NAME",
            "REPOSITORY_NAME",
            "ORGANIZATION_NAME"
          ],
          "description": "The type of webhook filter. There are 11 webhook filter types: EVENT, ACTOR_ACCOUNT_ID, HEAD_REF, BASE_REF, FILE_PATH, COMMIT_MESSAGE, TAG_NAME, RELEASE_NAME, REPOSITORY_NAME, ORGANIZATION_NAME, and WORKFLOW_NAME. EVENT A webhook event triggers a build when the provided pattern matches one of nine event types: PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED, PULL_REQUEST_CLOSED, PULL_REQUEST_REOPENED, PULL_REQUEST_MERGED, RELEASED, PRERELEASED, and WORKFLOW_JOB_QUEUED. The EVENT patterns are specified as a comma-separated string. For example, PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED f"
        },
        "pattern": {
          "type": "string",
          "description": "For a WebHookFilter that uses EVENT type, a comma-separated string that specifies one or more events. For example, the webhook filter PUSH, PULL_REQUEST_CREATED, PULL_REQUEST_UPDATED allows all push, pull request created, and pull request updated events to trigger a build. For a WebHookFilter that uses any of the other filter types, a regular expression pattern. For example, a WebHookFilter that uses HEAD_REF for its type and the pattern ^refs/heads/ triggers a build when the head reference is a branch with a reference name refs/heads/branch-name."
        },
        "excludeMatchedPattern": {
          "type": "boolean",
          "description": "Used to indicate that the pattern determines which webhook events do not trigger a build. If true, then a webhook event that does not match the pattern triggers a build. If false, then a webhook event that matches the pattern triggers a build."
        }
      },
      "required": [
        "type",
        "pattern"
      ]
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/aws-codebuild-create-webhook-input"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.