@Generated(value="jsii-pacmak/1.50.0 (build d1830a4)", date="2022-01-04T15:39:02.869Z") @Stability(value=Experimental) public interface SourceConfig 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.*;
import software.amazon.awscdk.services.ecr.*;
GitHubConnection gitHubConnection;
Repository repository;
Runtime runtime;
SourceConfig sourceConfig = SourceConfig.builder()
.codeRepository(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())
.ecrRepository(repository)
.imageRepository(ImageRepository.builder()
.imageIdentifier("imageIdentifier")
.imageRepositoryType(ImageRepositoryType.ECR_PUBLIC)
// the properties below are optional
.imageConfiguration(ImageConfiguration.builder()
.environment(Map.of(
"environmentKey", "environment"))
.port(123)
.startCommand("startCommand")
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
SourceConfig.Builder
A builder for
SourceConfig |
static class |
SourceConfig.Jsii$Proxy
An implementation for
SourceConfig |
| Modifier and Type | Method and Description |
|---|---|
static SourceConfig.Builder |
builder() |
default CodeRepositoryProps |
getCodeRepository()
(experimental) The code repository configuration (mutually exclusive with `imageRepository`).
|
default IRepository |
getEcrRepository()
(experimental) The ECR repository (required to grant the pull privileges for the iam role).
|
default ImageRepository |
getImageRepository()
(experimental) The image repository configuration (mutually exclusive with `codeRepository`).
|
@Stability(value=Experimental) @Nullable default CodeRepositoryProps getCodeRepository()
Default: - no code repository.
@Stability(value=Experimental) @Nullable default IRepository getEcrRepository()
Default: - no ECR repository.
@Stability(value=Experimental) @Nullable default ImageRepository getImageRepository()
Default: - no image repository.
@Stability(value=Experimental) static SourceConfig.Builder builder()
SourceConfig.Builder of SourceConfigCopyright © 2022. All rights reserved.