Interface CodeConfigurationValues
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CodeConfigurationValues.Jsii$Proxy
@Generated(value="jsii-pacmak/1.106.0 (build e852934)",
date="2025-02-12T12:32:13.272Z")
@Stability(Experimental)
public interface CodeConfigurationValues
extends software.amazon.jsii.JsiiSerializable
(experimental) 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:
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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forCodeConfigurationValues
static final class
An implementation forCodeConfigurationValues
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
default String
(experimental) The command App Runner runs to build your application.Deprecated.use environmentVariables.(experimental) The environment secrets that are available to your running App Runner service.(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.(experimental) A runtime environment type for building and running an App Runner service.default String
(experimental) The command App Runner runs to start your application.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getRuntime
(experimental) A runtime environment type for building and running an App Runner service.It represents a programming language runtime.
-
getBuildCommand
(experimental) The command App Runner runs to build your application.Default: - no build command.
-
getEnvironment
Deprecated.use environmentVariables.(deprecated) The environment variables that are available to your running App Runner service.Default: - no environment variables.
-
getEnvironmentSecrets
(experimental) The environment secrets that are available to your running App Runner service.Default: - no environment secrets.
-
getEnvironmentVariables
(experimental) The environment variables that are available to your running App Runner service.Default: - no environment variables.
-
getPort
(experimental) The port that your application listens to in the container.Default: 8080
-
getStartCommand
(experimental) The command App Runner runs to start your application.Default: - no start command.
-
builder
- Returns:
- a
CodeConfigurationValues.Builder
ofCodeConfigurationValues
-