Interface CfnService.CodeRepositoryProperty

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnService.CodeRepositoryProperty.Jsii$Proxy
Enclosing class:
CfnService

@Stability(Stable) public static interface CfnService.CodeRepositoryProperty extends software.amazon.jsii.JsiiSerializable
Describes a source code repository.

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.*;
 CodeRepositoryProperty codeRepositoryProperty = CodeRepositoryProperty.builder()
         .repositoryUrl("repositoryUrl")
         .sourceCodeVersion(SourceCodeVersionProperty.builder()
                 .type("type")
                 .value("value")
                 .build())
         // the properties below are optional
         .codeConfiguration(CodeConfigurationProperty.builder()
                 .configurationSource("configurationSource")
                 // the properties below are optional
                 .codeConfigurationValues(CodeConfigurationValuesProperty.builder()
                         .runtime("runtime")
                         // the properties below are optional
                         .buildCommand("buildCommand")
                         .port("port")
                         .runtimeEnvironmentSecrets(List.of(KeyValuePairProperty.builder()
                                 .name("name")
                                 .value("value")
                                 .build()))
                         .runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
                                 .name("name")
                                 .value("value")
                                 .build()))
                         .startCommand("startCommand")
                         .build())
                 .build())
         .build();
 
  • Method Details

    • getRepositoryUrl

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

      @Stability(Stable) @NotNull Object getSourceCodeVersion()
      The version that should be used within the source code repository.
    • getCodeConfiguration

      @Stability(Stable) @Nullable default Object getCodeConfiguration()
      Configuration for building and running the service from a source code repository.

      CodeConfiguration is required only for CreateService request.

    • builder

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