Interface CodeRepositoryProps

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

@Generated(value="jsii-pacmak/1.102.0 (build e354887)", date="2024-09-06T01:36:37.791Z") @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.alpha.*;
 GitHubConnection gitHubConnection;
 Runtime runtime;
 Secret secret;
 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"))
                         .environmentSecrets(Map.of(
                                 "environmentSecretsKey", secret))
                         .environmentVariables(Map.of(
                                 "environmentVariablesKey", "environmentVariables"))
                         .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