EventAction

class aws_cdk.aws_codebuild.EventAction(value)

Bases: enum.Enum

The types of webhook event actions.

ExampleMetadata

infused

Example:

git_hub_source = codebuild.Source.git_hub(
    owner="awslabs",
    repo="aws-cdk",
    webhook=True,  # optional, default: true if `webhookFilters` were provided, false otherwise
    webhook_triggers_batch_build=True,  # optional, default is false
    webhook_filters=[
        codebuild.FilterGroup.in_event_of(codebuild.EventAction.PUSH).and_branch_is("master").and_commit_message_is("the commit message")
    ]
)

Attributes

PULL_REQUEST_CREATED

Creating a Pull Request.

PULL_REQUEST_MERGED

Merging a Pull Request.

PULL_REQUEST_REOPENED

Re-opening a previously closed Pull Request.

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

PULL_REQUEST_UPDATED

Updating a Pull Request.

PUSH

A push (of a branch, or a tag) to the repository.