Interface CodeCommitSourceProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
,SourceProps
- All Known Implementing Classes:
CodeCommitSourceProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:11.972Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCodeCommitSourceProps
static final class
An implementation forCodeCommitSourceProps
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
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 Number
The depth of history to download.default Boolean
Whether to fetch submodules while cloning git repo.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
Methods 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.Builder
ofCodeCommitSourceProps
-