@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.858Z") @Stability(value=Experimental) public interface GithubRepositoryProps 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;
GithubRepositoryProps githubRepositoryProps = GithubRepositoryProps.builder()
.configurationSource(ConfigurationSourceType.REPOSITORY)
.connection(gitHubConnection)
.repositoryUrl("repositoryUrl")
// the properties below are optional
.branch("branch")
.codeConfigurationValues(CodeConfigurationValues.builder()
.runtime(runtime)
// the properties below are optional
.buildCommand("buildCommand")
.environment(Map.of(
"environmentKey", "environment"))
.port("port")
.startCommand("startCommand")
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
GithubRepositoryProps.Builder
A builder for
GithubRepositoryProps |
static class |
GithubRepositoryProps.Jsii$Proxy
An implementation for
GithubRepositoryProps |
| Modifier and Type | Method and Description |
|---|---|
static GithubRepositoryProps.Builder |
builder() |
default String |
getBranch()
(experimental) The branch name that represents a specific version for the repository.
|
default CodeConfigurationValues |
getCodeConfigurationValues()
(experimental) The code configuration values.
|
ConfigurationSourceType |
getConfigurationSource()
(experimental) The source of the App Runner configuration.
|
GitHubConnection |
getConnection()
(experimental) ARN of the connection to Github.
|
String |
getRepositoryUrl()
(experimental) The location of the repository that contains the source code.
|
@Stability(value=Experimental) @NotNull ConfigurationSourceType getConfigurationSource()
@Stability(value=Experimental) @NotNull GitHubConnection getConnection()
Only required for Github source.
@Stability(value=Experimental) @NotNull String getRepositoryUrl()
@Stability(value=Experimental) @Nullable default String getBranch()
Default: main
@Stability(value=Experimental) @Nullable default CodeConfigurationValues getCodeConfigurationValues()
Will be ignored if configurationSource is REPOSITORY.
Default: - no values will be passed. The `apprunner.yaml` from the github reopsitory will be used instead.
@Stability(value=Experimental) static GithubRepositoryProps.Builder builder()
GithubRepositoryProps.Builder of GithubRepositoryPropsCopyright © 2022. All rights reserved.