Interface RepositoryProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
RepositoryProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-11-22T02:23:58.722Z")
@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
Modifier and TypeInterfaceDescriptionstatic final class
A builder forRepositoryProps
static final class
An implementation forRepositoryProps
-
Method Summary
Modifier and TypeMethodDescriptionstatic RepositoryProps.Builder
builder()
default Code
getCode()
The contents with which to initialize the repository after it has been created.default String
A description of the repository.default IKey
The 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.Builder
ofRepositoryProps
-