@Stability(value=Stable)
public static interface CfnService.CodeConfigurationValuesProperty
extends software.amazon.jsii.JsiiSerializable
This type doesn't support the full set of possible configuration options. Fur full configuration capabilities, use a apprunner.yaml file in the source code repository.
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.*;
CodeConfigurationValuesProperty codeConfigurationValuesProperty = 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();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CfnService.CodeConfigurationValuesProperty.Builder
A builder for
CfnService.CodeConfigurationValuesProperty |
static class |
CfnService.CodeConfigurationValuesProperty.Jsii$Proxy
An implementation for
CfnService.CodeConfigurationValuesProperty |
| Modifier and Type | Method and Description |
|---|---|
static CfnService.CodeConfigurationValuesProperty.Builder |
builder() |
default String |
getBuildCommand()
The command App Runner runs to build your application.
|
default String |
getPort()
The port that your application listens to in the container.
|
String |
getRuntime()
A runtime environment type for building and running an App Runner service.
|
default Object |
getRuntimeEnvironmentVariables()
The environment variables that are available to your running App Runner service.
|
default String |
getStartCommand()
The command App Runner runs to start your application.
|
@Stability(value=Stable) @NotNull String getRuntime()
It represents a programming language runtime.
@Stability(value=Stable) @Nullable default String getBuildCommand()
@Stability(value=Stable) @Nullable default String getPort()
Default: 8080
@Stability(value=Stable) @Nullable default Object getRuntimeEnvironmentVariables()
An array of key-value pairs. Keys with a prefix of AWSAPPRUNNER are reserved for system use and aren't valid.
@Stability(value=Stable) @Nullable default String getStartCommand()
@Stability(value=Stable) static CfnService.CodeConfigurationValuesProperty.Builder builder()
Copyright © 2022. All rights reserved.