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
} } },
ScopeConfiguration = new ScopeConfigurationProperty {
Name = "name"
},
Webhook = false
};
Synopsis
Properties
Build |
Specifies the type of build this webhook will trigger. Allowed values are:. |
Filter |
A list of lists of |
Scope |
Contains configuration information about the scope for a webhook. |
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.
Remarks
FilterGroups
A list of lists of WebhookFilter
objects used to determine which webhook events are triggered.
virtual object FilterGroups { get; }
Property Value
System.
Remarks
At least one WebhookFilter
in the array must specify EVENT
as its type.
ScopeConfiguration
Contains configuration information about the scope for a webhook.
virtual object ScopeConfiguration { get; }
Property Value
System.
Remarks
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.