aws-cdk-lib.aws_codebuild.CfnProject.ProjectTriggersProperty

interface ProjectTriggersProperty

LanguageType name
.NETAmazon.CDK.AWS.CodeBuild.CfnProject.ProjectTriggersProperty
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awscodebuild#CfnProject_ProjectTriggersProperty
Javasoftware.amazon.awscdk.services.codebuild.CfnProject.ProjectTriggersProperty
Pythonaws_cdk.aws_codebuild.CfnProject.ProjectTriggersProperty
TypeScript aws-cdk-lib » aws_codebuild » CfnProject » ProjectTriggersProperty

ProjectTriggers is a property of the AWS CodeBuild Project 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.

Example

// 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,
  }]],
  webhook: false,
};

Properties

NameTypeDescription
buildType?stringSpecifies the type of build this webhook will trigger. Allowed values are:.
filterGroups?IResolvable | IResolvable | IResolvable | WebhookFilterProperty[][]A list of lists of WebhookFilter objects used to determine which webhook events are triggered.
webhook?boolean | IResolvableSpecifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.

buildType?

Type: string (optional)

Specifies the type of build this webhook will trigger. Allowed values are:.

  • BUILD - A single build
  • BUILD_BATCH - A batch build

filterGroups?

Type: IResolvable | IResolvable | IResolvable | WebhookFilterProperty[][] (optional)

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.


webhook?

Type: boolean | IResolvable (optional)

Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.