@Generated(value="jsii-pacmak/1.58.0 (build f8ba112)", date="2022-05-11T19:24:24.563Z") @Stability(value=Experimental) public interface CodeRepositoryProps extends software.amazon.jsii.JsiiSerializable
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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CodeRepositoryProps.Builder
A builder for
CodeRepositoryProps |
static class |
CodeRepositoryProps.Jsii$Proxy
An implementation for
CodeRepositoryProps |
| Modifier and Type | Method and Description |
|---|---|
static CodeRepositoryProps.Builder |
builder() |
CodeConfiguration |
getCodeConfiguration()
(experimental) Configuration for building and running the service from a source code repository.
|
GitHubConnection |
getConnection()
(experimental) The App Runner connection for GitHub.
|
String |
getRepositoryUrl()
(experimental) The location of the repository that contains the source code.
|
SourceCodeVersion |
getSourceCodeVersion()
(experimental) The version that should be used within the source code repository.
|
@Stability(value=Experimental) @NotNull CodeConfiguration getCodeConfiguration()
@Stability(value=Experimental) @NotNull GitHubConnection getConnection()
@Stability(value=Experimental) @NotNull String getRepositoryUrl()
@Stability(value=Experimental) @NotNull SourceCodeVersion getSourceCodeVersion()
@Stability(value=Experimental) static CodeRepositoryProps.Builder builder()
CodeRepositoryProps.Builder of CodeRepositoryPropsCopyright © 2022. All rights reserved.