TriggerProps

class aws_cdk.aws_codepipeline.TriggerProps(*, provider_type, git_configuration=None)

Bases: object

Properties of trigger.

Parameters:
  • provider_type (ProviderType) – The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.

  • git_configuration (Union[GitConfiguration, Dict[str, Any], None]) – Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags. Default: - no configuration.

ExampleMetadata:

infused

Example:

# pipeline: codepipeline.Pipeline
# source_action: codepipeline_actions.CodeStarConnectionsSourceAction


pipeline.add_trigger(
    provider_type=codepipeline.ProviderType.CODE_STAR_SOURCE_CONNECTION,
    git_configuration=codepipeline.GitConfiguration(
        source_action=source_action,
        push_filter=[codepipeline.GitPushFilter(
            tags_excludes=["exclude1", "exclude2"],
            tags_includes=["include*"]
        )]
    )
)

Attributes

git_configuration

Provides the filter criteria and the source stage for the repository event that starts the pipeline, such as Git tags.

Default:
  • no configuration.

provider_type

The source provider for the event, such as connections configured for a repository with Git tags, for the specified trigger configuration.