# ProjectTriggersProperty

`ProjectTriggers` is a property of the [AWS CodeBuild Project](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-codebuild-project.html) resource that specifies webhooks that trigger an AWS CodeBuild build.

> The Webhook feature isn't available in AWS CloudFormation for GitHub Enterprise projects. Use the AWS CLI or AWS CodeBuild console to create the webhook.

- Source: Generated code
- Type last changed: v2.212.0 · 20 Aug 2025

## Example

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_codebuild as codebuild } from 'aws-cdk-lib';
const projectTriggersProperty: codebuild.CfnProject.ProjectTriggersProperty = {
  buildType: 'buildType',
  filterGroups: [[{
    pattern: 'pattern',
    type: 'type',

    // the properties below are optional
    excludeMatchedPattern: false,
  }]],
  pullRequestBuildPolicy: {
    requiresCommentApproval: 'requiresCommentApproval',

    // the properties below are optional
    approverRoles: ['approverRoles'],
  },
  scopeConfiguration: {
    name: 'name',

    // the properties below are optional
    domain: 'domain',
    scope: 'scope',
  },
  webhook: false,
};
```

## Properties

- `buildType`: string — Specifies the type of build this webhook will trigger. Allowed values are:.

  - **BUILD** - A single build
  - **BUILD_BATCH** - A batch build

- `filterGroups`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProject.WebhookFilterProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.CfnProject.WebhookFilterProperty.html)[][] — A list of lists of `WebhookFilter` objects used to determine which webhook events are triggered.

  At least one `WebhookFilter` in the array must specify `EVENT` as its type.

- `pullRequestBuildPolicy`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProject.PullRequestBuildPolicyProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.CfnProject.PullRequestBuildPolicyProperty.html)

- `scopeConfiguration`: [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProject.ScopeConfigurationProperty](/cdk/api/v2/docs/aws-cdk-lib.aws_codebuild.CfnProject.ScopeConfigurationProperty.html) — Contains configuration information about the scope for a webhook.

- `webhook`: boolean | [IResolvable](/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) — Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.
