@Stability(value=Stable)
public static interface CfnService.CodeConfigurationProperty
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.*;
CodeConfigurationProperty codeConfigurationProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnService.CodeConfigurationProperty.Builder
A builder for
CfnService.CodeConfigurationProperty |
static class |
CfnService.CodeConfigurationProperty.Jsii$Proxy
An implementation for
CfnService.CodeConfigurationProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnService.CodeConfigurationProperty.Builder |
builder() |
default Object |
getCodeConfigurationValues()
The basic configuration for building and running the App Runner service.
|
String |
getConfigurationSource()
The source of the App Runner configuration.
|
@Stability(value=Stable) @NotNull String getConfigurationSource()
REPOSITORY – App Runner reads configuration values from the apprunner.yaml file in the source code repository and ignores CodeConfigurationValues .API – App Runner uses configuration values provided in CodeConfigurationValues and ignores the apprunner.yaml file in the source code repository.@Stability(value=Stable) @Nullable default Object getCodeConfigurationValues()
Use it to quickly launch an App Runner service without providing a apprunner.yaml file in the source code repository (or ignoring the file if it exists).
@Stability(value=Stable) static CfnService.CodeConfigurationProperty.Builder builder()
Copyright © 2022. All rights reserved.