Interface GitConfiguration
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
GitConfiguration.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:40:47.776Z")
@Stability(Stable)
public interface GitConfiguration
extends software.amazon.jsii.JsiiSerializable
Git configuration for trigger.
Example:
CodeStarConnectionsSourceAction sourceAction;
CodeBuildAction buildAction;
Pipeline.Builder.create(this, "Pipeline")
.pipelineType(PipelineType.V2)
.stages(List.of(StageProps.builder()
.stageName("Source")
.actions(List.of(sourceAction))
.build(), StageProps.builder()
.stageName("Build")
.actions(List.of(buildAction))
.build()))
.triggers(List.of(TriggerProps.builder()
.providerType(ProviderType.CODE_STAR_SOURCE_CONNECTION)
.gitConfiguration(GitConfiguration.builder()
.sourceAction(sourceAction)
.pushFilter(List.of(GitPushFilter.builder()
.tagsExcludes(List.of("exclude1", "exclude2"))
.tagsIncludes(List.of("include*"))
.build()))
.build())
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forGitConfigurationstatic final classAn implementation forGitConfiguration -
Method Summary
Modifier and TypeMethodDescriptionstatic GitConfiguration.Builderbuilder()default List<GitPullRequestFilter> The field where the repository event that will start the pipeline is specified as pull requests.default List<GitPushFilter> The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.The pipeline source action where the trigger configuration, such as Git tags.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getSourceAction
The pipeline source action where the trigger configuration, such as Git tags.The trigger configuration will start the pipeline upon the specified change only. You can only specify one trigger configuration per source action.
Since the provider for
sourceActionmust beCodeStarSourceConnection, you can useCodeStarConnectionsSourceActionconstruct inaws-codepipeline-actionsmodule. -
getPullRequestFilter
The field where the repository event that will start the pipeline is specified as pull requests.The length must be less than or equal to 3.
Default: - no filter.
-
getPushFilter
The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.Git tags, file paths and branches are supported event type.
The length must be less than or equal to 3.
Default: - no filter.
-
builder
- Returns:
- a
GitConfiguration.BuilderofGitConfiguration
-