Interface CodeRepositoryProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CodeRepositoryProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:40.042Z") @Stability(Experimental) public interface CodeRepositoryProps extends software.amazon.jsii.JsiiSerializable
(experimental) Properties of the CodeRepository.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.apprunner.*;
 GitHubConnection gitHubConnection;
 Runtime runtime;
 CodeRepositoryProps codeRepositoryProps = CodeRepositoryProps.builder()
         .codeConfiguration(CodeConfiguration.builder()
                 .configurationSource(ConfigurationSourceType.REPOSITORY)
                 // the properties below are optional
                 .configurationValues(CodeConfigurationValues.builder()
                         .runtime(runtime)
                         // the properties below are optional
                         .buildCommand("buildCommand")
                         .environment(Map.of(
                                 "environmentKey", "environment"))
                         .port("port")
                         .startCommand("startCommand")
                         .build())
                 .build())
         .connection(gitHubConnection)
         .repositoryUrl("repositoryUrl")
         .sourceCodeVersion(SourceCodeVersion.builder()
                 .type("type")
                 .value("value")
                 .build())
         .build();
 
  • Method Details

    • getCodeConfiguration

      @Stability(Experimental) @NotNull CodeConfiguration getCodeConfiguration()
      (experimental) Configuration for building and running the service from a source code repository.
    • getConnection

      @Stability(Experimental) @NotNull GitHubConnection getConnection()
      (experimental) The App Runner connection for GitHub.
    • getRepositoryUrl

      @Stability(Experimental) @NotNull String getRepositoryUrl()
      (experimental) The location of the repository that contains the source code.
    • getSourceCodeVersion

      @Stability(Experimental) @NotNull SourceCodeVersion getSourceCodeVersion()
      (experimental) The version that should be used within the source code repository.
    • builder

      @Stability(Experimental) static CodeRepositoryProps.Builder builder()
      Returns:
      a CodeRepositoryProps.Builder of CodeRepositoryProps