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 CfnProject.IProjectTriggersProperty
Syntax (vb)
Public Interface CfnProject.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
} } },
PullRequestBuildPolicy = new PullRequestBuildPolicyProperty {
RequiresCommentApproval = "requiresCommentApproval",
// the properties below are optional
ApproverRoles = new [] { "approverRoles" }
},
ScopeConfiguration = new ScopeConfigurationProperty {
Name = "name",
// the properties below are optional
Domain = "domain",
Scope = "scope"
},
Webhook = false
};
Synopsis
Properties
| BuildType | Specifies the type of build this webhook will trigger. Allowed values are:. |
| FilterGroups | A list of lists of |
| PullRequestBuildPolicy |
|
| ScopeConfiguration | 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:.
string? BuildType { get; }
Property Value
Remarks
FilterGroups
A list of lists of WebhookFilter objects used to determine which webhook events are triggered.
object? FilterGroups { get; }
Property Value
Remarks
At least one WebhookFilter in the array must specify EVENT as its type.
Type union: either IResolvable or (either IResolvable or (either IResolvable or CfnProject.IWebhookFilterProperty)[])[]
PullRequestBuildPolicy
ProjectTriggers is a property of the AWS CodeBuild Project resource that specifies webhooks that trigger an AWS CodeBuild build.
object? PullRequestBuildPolicy { get; }
Property Value
Remarks
ScopeConfiguration
Contains configuration information about the scope for a webhook.
object? ScopeConfiguration { get; }
Property Value
Remarks
Webhook
Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.
object? Webhook { get; }