Interface CfnProject.ProjectTriggersProperty

All Superinterfaces:
All Known Implementing Classes:
Enclosing class:

@Stability(Stable) public static interface CfnProject.ProjectTriggersProperty extends
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.


 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 ProjectTriggersProperty projectTriggersProperty = ProjectTriggersProperty.builder()
                 // the properties below are optional
  • Method Details

    • getBuildType

      @Stability(Stable) @Nullable default String getBuildType()
      Specifies the type of build this webhook will trigger. Allowed values are:.

      • BUILD - A single build
      • BUILD_BATCH - A batch build
    • getFilterGroups

      @Stability(Stable) @Nullable default Object getFilterGroups()
      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.

    • getWebhook

      @Stability(Stable) @Nullable default Object getWebhook()
      Specifies whether or not to begin automatically rebuilding the source code every time a code change is pushed to the repository.
    • builder

      @Stability(Stable) static CfnProject.ProjectTriggersProperty.Builder builder()
      a CfnProject.ProjectTriggersProperty.Builder of CfnProject.ProjectTriggersProperty