GitPullRequestEvent
- class aws_cdk.aws_codepipeline.GitPullRequestEvent(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Bases:
Enum
Event for trigger with pull request filter.
- ExampleMetadata:
infused
Example:
# source_action: codepipeline_actions.CodeStarConnectionsSourceAction # build_action: codepipeline_actions.CodeBuildAction codepipeline.Pipeline(self, "Pipeline", pipeline_type=codepipeline.PipelineType.V2, stages=[codepipeline.StageProps( stage_name="Source", actions=[source_action] ), codepipeline.StageProps( stage_name="Build", actions=[build_action] ) ], triggers=[codepipeline.TriggerProps( provider_type=codepipeline.ProviderType.CODE_STAR_SOURCE_CONNECTION, git_configuration=codepipeline.GitConfiguration( source_action=source_action, pull_request_filter=[codepipeline.GitPullRequestFilter( branches_excludes=["exclude1", "exclude2"], branches_includes=["include1", "include2"], events=[codepipeline.GitPullRequestEvent.OPEN, codepipeline.GitPullRequestEvent.CLOSED ] )] ) )] )
Attributes
- CLOSED
CLOSED.
- OPEN
OPEN.
- UPDATED
UPDATED.