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())
         .sourceDirectory("sourceDirectory")
         .build();
 - See Also:
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnService.CodeRepositoryPropertystatic final classAn implementation forCfnService.CodeRepositoryProperty
- 
Method SummaryModifier and TypeMethodDescriptionbuilder()default ObjectConfiguration for building and running the service from a source code repository.The location of the repository that contains the source code.The version that should be used within the source code repository.default StringThe path of the directory that stores source code and configuration files.Methods inherited from interface software.amazon.jsii.JsiiSerializable$jsii$toJson
- 
Method Details- 
getRepositoryUrlThe location of the repository that contains the source code.- See Also:
 
- 
getSourceCodeVersionThe version that should be used within the source code repository.Returns union: either IResolvableorCfnService.SourceCodeVersionProperty- See Also:
 
- 
getCodeConfigurationConfiguration for building and running the service from a source code repository.CodeConfigurationis required only forCreateServicerequest.Returns union: either IResolvableorCfnService.CodeConfigurationProperty- See Also:
 
- 
getSourceDirectoryThe path of the directory that stores source code and configuration files.The build and start commands also execute from here. The path is absolute from root and, if not specified, defaults to the repository root. - See Also:
 
- 
builder
 
-