Interface CfnProjectPropsMixin.ProjectTriggersProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnProjectPropsMixin.ProjectTriggersProperty.Jsii$Proxy
Enclosing class:
CfnProjectPropsMixin

@Stability(Stable) public static interface CfnProjectPropsMixin.ProjectTriggersProperty extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.cfnpropertymixins.services.codebuild.*;
 ProjectTriggersProperty projectTriggersProperty = ProjectTriggersProperty.builder()
         .buildType("buildType")
         .filterGroups(List.of(List.of(WebhookFilterProperty.builder()
                 .excludeMatchedPattern(false)
                 .pattern("pattern")
                 .type("type")
                 .build())))
         .pullRequestBuildPolicy(PullRequestBuildPolicyProperty.builder()
                 .approverRoles(List.of("approverRoles"))
                 .requiresCommentApproval("requiresCommentApproval")
                 .build())
         .scopeConfiguration(ScopeConfigurationProperty.builder()
                 .domain("domain")
                 .name("name")
                 .scope("scope")
                 .build())
         .webhook(false)
         .build();
 

See Also: