Interface RepositoryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RepositoryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-13T16:10:01.077Z")
@Stability(Stable)
public interface RepositoryProps
extends software.amazon.jsii.JsiiSerializable
Example:
PipelineProject project;
Repository repository = Repository.Builder.create(this, "MyRepository")
.repositoryName("MyRepository")
.build();
PipelineProject project = new PipelineProject(this, "MyProject");
Artifact sourceOutput = new Artifact();
CodeCommitSourceAction sourceAction = CodeCommitSourceAction.Builder.create()
.actionName("CodeCommit")
.repository(repository)
.output(sourceOutput)
.build();
CodeBuildAction buildAction = CodeBuildAction.Builder.create()
.actionName("CodeBuild")
.project(project)
.input(sourceOutput)
.outputs(List.of(new Artifact())) // optional
.executeBatchBuild(true) // optional, defaults to false
.combineBatchBuildArtifacts(true)
.build();
Pipeline.Builder.create(this, "MyPipeline")
.stages(List.of(StageProps.builder()
.stageName("Source")
.actions(List.of(sourceAction))
.build(), StageProps.builder()
.stageName("Build")
.actions(List.of(buildAction))
.build()))
.build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forRepositoryPropsstatic final classAn implementation forRepositoryProps -
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryProps.Builderbuilder()default CodegetCode()The contents with which to initialize the repository after it has been created.default StringA description of the repository.default IKeyRefThe customer managed key used to encrypt and decrypt the data in repository.Name of the repository.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRepositoryName
Name of the repository.This property is required for all CodeCommit repositories.
-
getCode
The contents with which to initialize the repository after it has been created.Default: - No initialization (create empty repo)
-
getDescription
A description of the repository.Use the description to identify the purpose of the repository.
Default: - No description.
-
getKmsKey
The customer managed key used to encrypt and decrypt the data in repository.Default: - Use an AWS managed key
-
builder
- Returns:
- a
RepositoryProps.BuilderofRepositoryProps
-