Interface CfnService.CodeConfigurationValuesProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnService.CodeConfigurationValuesProperty.Jsii$Proxy
- Enclosing class:
CfnService
@Stability(Stable)
public static interface CfnService.CodeConfigurationValuesProperty
extends software.amazon.jsii.JsiiSerializable
Describes the basic configuration needed for building and running an AWS App Runner service.
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") .runtimeEnvironmentSecrets(List.of(KeyValuePairProperty.builder() .name("name") .value("value") .build())) .runtimeEnvironmentVariables(List.of(KeyValuePairProperty.builder() .name("name") .value("value") .build())) .startCommand("startCommand") .build();
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnService.CodeConfigurationValuesProperty
static final class
An implementation forCfnService.CodeConfigurationValuesProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
The command App Runner runs to build your application.default String
getPort()
The port that your application listens to in the container.A runtime environment type for building and running an App Runner service.default Object
CfnService.CodeConfigurationValuesProperty.RuntimeEnvironmentSecrets
.default Object
The environment variables that are available to your running AWS App Runner service.default String
The command App Runner runs to start your application.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRuntime
A runtime environment type for building and running an App Runner service.It represents a programming language runtime.
-
getBuildCommand
The command App Runner runs to build your application. -
getPort
The port that your application listens to in the container.Default:
8080
-
getRuntimeEnvironmentSecrets
CfnService.CodeConfigurationValuesProperty.RuntimeEnvironmentSecrets
. -
getRuntimeEnvironmentVariables
The environment variables that are available to your running AWS App Runner service.An array of key-value pairs.
-
getStartCommand
The command App Runner runs to start your application. -
builder
-