Enum EventAction

java.lang.Object
java.lang.Enum<EventAction>
software.amazon.awscdk.services.codebuild.EventAction
All Implemented Interfaces:
Serializable, Comparable<EventAction>, java.lang.constant.Constable

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:41.778Z") @Stability(Stable) public enum EventAction extends Enum<EventAction>
The types of webhook event actions.

Example:

 ISource gitHubSource = Source.gitHub(GitHubSourceProps.builder()
         .owner("awslabs")
         .repo("aws-cdk")
         .webhook(true) // optional, default: true if `webhookFilters` were provided, false otherwise
         .webhookTriggersBatchBuild(true) // optional, default is false
         .webhookFilters(List.of(FilterGroup.inEventOf(EventAction.PUSH).andBranchIs("master").andCommitMessageIs("the commit message")))
         .build());
 
  • Enum Constant Details

    • PUSH

      @Stability(Stable) public static final EventAction PUSH
      A push (of a branch, or a tag) to the repository.
    • PULL_REQUEST_CREATED

      @Stability(Stable) public static final EventAction PULL_REQUEST_CREATED
      Creating a Pull Request.
    • PULL_REQUEST_UPDATED

      @Stability(Stable) public static final EventAction PULL_REQUEST_UPDATED
      Updating a Pull Request.
    • PULL_REQUEST_MERGED

      @Stability(Stable) public static final EventAction PULL_REQUEST_MERGED
      Merging a Pull Request.
    • PULL_REQUEST_REOPENED

      @Stability(Stable) public static final EventAction PULL_REQUEST_REOPENED
      Re-opening a previously closed Pull Request.

      Note that this event is only supported for GitHub and GitHubEnterprise sources.

  • Method Details

    • values

      public static EventAction[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static EventAction valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null