@Stability(value=Stable)
public static interface CfnService.CodeRepositoryProperty
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.*;
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")
.runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder()
.name("name")
.value("value")
.build()))
.startCommand("startCommand")
.build())
.build())
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnService.CodeRepositoryProperty.Builder
A builder for
CfnService.CodeRepositoryProperty |
static class |
CfnService.CodeRepositoryProperty.Jsii$Proxy
An implementation for
CfnService.CodeRepositoryProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnService.CodeRepositoryProperty.Builder |
builder() |
default Object |
getCodeConfiguration()
Configuration for building and running the service from a source code repository.
|
String |
getRepositoryUrl()
The location of the repository that contains the source code.
|
Object |
getSourceCodeVersion()
The version that should be used within the source code repository.
|
@Stability(value=Stable) @NotNull String getRepositoryUrl()
@Stability(value=Stable) @NotNull Object getSourceCodeVersion()
@Stability(value=Stable) @Nullable default Object getCodeConfiguration()
CodeConfigurationis required only forCreateServicerequest.
@Stability(value=Stable) static CfnService.CodeRepositoryProperty.Builder builder()
Copyright © 2022. All rights reserved.