Interface CfnProject.IProjectTriggersProperty
ProjectTriggers
is a property of the AWS CodeBuild Project resource that specifies webhooks that trigger an AWS CodeBuild build.
Namespace: Amazon.CDK.AWS.CodeBuild
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IProjectTriggersProperty
Syntax (vb)
Public Interface IProjectTriggersProperty
Remarks
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.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.CodeBuild;
var projectTriggersProperty = new ProjectTriggersProperty {
BuildType = "buildType",
FilterGroups = new [] { new [] { new WebhookFilterProperty {
Pattern = "pattern",
Type = "type",
// the properties below are optional
ExcludeMatchedPattern = false
} } },
Webhook = false
};
Synopsis
Properties
BuildType | Specifies the type of build this webhook will trigger. Allowed values are:. |
FilterGroups | A list of lists of |
Webhook | Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository. |
Properties
BuildType
Specifies the type of build this webhook will trigger. Allowed values are:.
virtual string BuildType { get; }
Property Value
System.String
Remarks
FilterGroups
A list of lists of WebhookFilter
objects used to determine which webhook events are triggered.
virtual object FilterGroups { get; }
Property Value
System.Object
Remarks
At least one WebhookFilter
in the array must specify EVENT
as its type.
Webhook
Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.
virtual object Webhook { get; }
Property Value
System.Object