interface ProjectTriggersProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.CodeBuild.CfnProject.ProjectTriggersProperty |
Java | software.amazon.awscdk.services.codebuild.CfnProject.ProjectTriggersProperty |
Python | aws_cdk.aws_codebuild.CfnProject.ProjectTriggersProperty |
TypeScript | @aws-cdk/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 * as codebuild from '@aws-cdk/aws-codebuild';
const projectTriggersProperty: codebuild.CfnProject.ProjectTriggersProperty = {
buildType: 'buildType',
filterGroups: [[{
pattern: 'pattern',
type: 'type',
// the properties below are optional
excludeMatchedPattern: false,
}]],
webhook: false,
};
Properties
Name | Type | Description |
---|---|---|
build | string | Specifies the type of build this webhook will trigger. Allowed values are:. |
filter | IResolvable | IResolvable | Webhook | IResolvable [][] | A list of lists of WebhookFilter objects used to determine which webhook events are triggered. |
webhook? | boolean | IResolvable | Specifies 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
|
Webhook
|
IResolvable
[][]
(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.