@Generated(value="jsii-pacmak/1.70.0 (build 03c2f6f)", date="2022-11-01T13:16:42.565Z") @Stability(value=Experimental) public interface CodeConfigurationValues 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:
Service.Builder.create(this, "Service")
.source(Source.fromGitHub(GithubRepositoryProps.builder()
.repositoryUrl("https://github.com/aws-containers/hello-app-runner")
.branch("main")
.configurationSource(ConfigurationSourceType.API)
.codeConfigurationValues(CodeConfigurationValues.builder()
.runtime(Runtime.PYTHON_3)
.port("8000")
.startCommand("python app.py")
.buildCommand("yum install -y pycairo && pip install -r requirements.txt")
.build())
.connection(GitHubConnection.fromConnectionArn("CONNECTION_ARN"))
.build()))
.build();
| Modifier and Type | Interface and Description |
|---|---|
static class |
CodeConfigurationValues.Builder
A builder for
CodeConfigurationValues |
static class |
CodeConfigurationValues.Jsii$Proxy
An implementation for
CodeConfigurationValues |
| Modifier and Type | Method and Description |
|---|---|
static CodeConfigurationValues.Builder |
builder() |
default String |
getBuildCommand()
(experimental) The command App Runner runs to build your application.
|
default Map<String,String> |
getEnvironment()
(experimental) The environment variables that are available to your running App Runner service.
|
default String |
getPort()
(experimental) The port that your application listens to in the container.
|
Runtime |
getRuntime()
(experimental) A runtime environment type for building and running an App Runner service.
|
default String |
getStartCommand()
(experimental) The command App Runner runs to start your application.
|
@Stability(value=Experimental) @NotNull Runtime getRuntime()
It represents a programming language runtime.
@Stability(value=Experimental) @Nullable default String getBuildCommand()
Default: - no build command.
@Stability(value=Experimental) @Nullable default Map<String,String> getEnvironment()
Default: - no environment variables.
@Stability(value=Experimental) @Nullable default String getPort()
Default: 8080
@Stability(value=Experimental) @Nullable default String getStartCommand()
Default: - no start command.
@Stability(value=Experimental) static CodeConfigurationValues.Builder builder()
CodeConfigurationValues.Builder of CodeConfigurationValuesCopyright © 2022. All rights reserved.