@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)", date="2022-08-09T19:16:39.637Z") public interface CodeCommitSourceProps extends SourceProps
CodeCommitSource
.
Example:
import software.amazon.awscdk.services.codecommit.*; Repository repo; Bucket bucket; Project project = Project.Builder.create(this, "MyProject") .secondarySources(List.of(Source.codeCommit(CodeCommitSourceProps.builder() .identifier("source2") .repository(repo) .build()))) .secondaryArtifacts(List.of(Artifacts.s3(S3ArtifactsProps.builder() .identifier("artifact2") .bucket(bucket) .path("some/path") .name("file.zip") .build()))) .build();
Modifier and Type | Interface and Description |
---|---|
static class |
CodeCommitSourceProps.Builder
A builder for
CodeCommitSourceProps |
static class |
CodeCommitSourceProps.Jsii$Proxy
An implementation for
CodeCommitSourceProps |
Modifier and Type | Method and Description |
---|---|
static CodeCommitSourceProps.Builder |
builder() |
default java.lang.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 java.lang.Number |
getCloneDepth()
The depth of history to download.
|
default java.lang.Boolean |
getFetchSubmodules()
Whether to fetch submodules while cloning git repo.
|
IRepository |
getRepository() |
getIdentifier
IRepository getRepository()
default java.lang.String getBranchOrRef()
Default: the default branch's HEAD commit ID is used
Example:
"mybranch";
default java.lang.Number getCloneDepth()
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.
default java.lang.Boolean getFetchSubmodules()
Default: false
static CodeCommitSourceProps.Builder builder()
builder
in interface SourceProps
CodeCommitSourceProps.Builder
of CodeCommitSourceProps