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();
 
  • Method Details

    • getRepositoryName

      @Stability(Stable) @NotNull String getRepositoryName()
      Name of the repository.

      This property is required for all CodeCommit repositories.

    • getCode

      @Stability(Stable) @Nullable default Code getCode()
      The contents with which to initialize the repository after it has been created.

      Default: - No initialization (create empty repo)

    • getDescription

      @Stability(Stable) @Nullable default String getDescription()
      A description of the repository.

      Use the description to identify the purpose of the repository.

      Default: - No description.

    • getKmsKey

      @Stability(Stable) @Nullable default IKey getKmsKey()
      The customer managed key used to encrypt and decrypt the data in repository.

      Default: - Use an AWS managed key

    • builder

      @Stability(Stable) static RepositoryProps.Builder builder()
      Returns:
      a RepositoryProps.Builder of RepositoryProps