Interface GitConfiguration

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
GitConfiguration.Jsii$Proxy

@Generated(value="jsii-pacmak/1.98.0 (build 00b106d)", date="2024-05-08T21:35:04.431Z") @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();
 
  • Method Details

    • getSourceAction

      @Stability(Stable) @NotNull IAction 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 sourceAction must be CodeStarSourceConnection, you can use CodeStarConnectionsSourceAction construct in aws-codepipeline-actions module.

    • getPushFilter

      @Stability(Stable) @Nullable default List<GitPushFilter> getPushFilter()
      The field where the repository event that will start the pipeline, such as pushing Git tags, is specified with details.

      Git tags is the only supported event type.

      The length must be less than or equal to 3.

      Default: - no filter.

    • builder

      @Stability(Stable) static GitConfiguration.Builder builder()
      Returns:
      a GitConfiguration.Builder of GitConfiguration