Interface CodeCommitSourceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable,SourceProps
- All Known Implementing Classes:
CodeCommitSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:41.769Z")
@Stability(Stable)
public interface CodeCommitSourceProps
extends software.amazon.jsii.JsiiSerializable, SourceProps
Construction properties for
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCodeCommitSourcePropsstatic final classAn implementation forCodeCommitSourceProps -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe commit ID, pull request ID, branch name, or tag name that corresponds to the version of the source code you want to build.default NumberThe depth of history to download.default BooleanWhether to fetch submodules while cloning git repo.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJsonMethods inherited from interface software.amazon.awscdk.services.codebuild.SourceProps
getIdentifier
-
Method Details
-
getRepository
-
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
Example:
"mybranch";
-
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
Whether to fetch submodules while cloning git repo.Default: false
-
builder
- Returns:
- a
CodeCommitSourceProps.BuilderofCodeCommitSourceProps
-