Interface CodeCommitSourceProps

All Superinterfaces:, SourceProps
All Known Implementing Classes:

@Generated(value="jsii-pacmak/1.92.0 (build db7f27d)", date="2023-12-06T04:49:36.027Z") @Stability(Stable) public interface CodeCommitSourceProps extends, SourceProps
Construction properties for CodeCommitSource.


 Repository repo;
 Bucket bucket;
 Project project = Project.Builder.create(this, "MyProject")
  • Method Details

    • getRepository

      @Stability(Stable) @NotNull IRepository getRepository()
    • getBranchOrRef

      @Stability(Stable) @Nullable default String getBranchOrRef()
      The commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build.

      Default: the default branch's HEAD commit ID is used


    • getCloneDepth

      @Stability(Stable) @Nullable default Number getCloneDepth()
      The depth of history to download.

      Minimum value is 0. If this value is 0, greater than 25, or not provided, then the full history is downloaded with each build of the project.

    • getFetchSubmodules

      @Stability(Stable) @Nullable default Boolean getFetchSubmodules()
      Whether to fetch submodules while cloning git repo.

      Default: false

    • builder

      @Stability(Stable) static CodeCommitSourceProps.Builder builder()
      a CodeCommitSourceProps.Builder of CodeCommitSourceProps