Interface ICodeConfigurationValues
(experimental) Describes the basic configuration needed for building and running an AWS App Runner service.
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public interface ICodeConfigurationValues
Syntax (vb)
Public Interface ICodeConfigurationValues
Remarks
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.
Stability: Experimental
ExampleMetadata: infused
Examples
new Service(this, "Service", new ServiceProps {
Source = Source.FromGitHub(new GithubRepositoryProps {
RepositoryUrl = "https://github.com/aws-containers/hello-app-runner",
Branch = "main",
ConfigurationSource = ConfigurationSourceType.API,
CodeConfigurationValues = new CodeConfigurationValues {
Runtime = Runtime.PYTHON_3,
Port = "8000",
StartCommand = "python app.py",
BuildCommand = "yum install -y pycairo && pip install -r requirements.txt"
},
Connection = GitHubConnection.FromConnectionArn("CONNECTION_ARN")
})
});
Synopsis
Properties
BuildCommand | (experimental) The command App Runner runs to build your application. |
Environment | (deprecated) The environment variables that are available to your running App Runner service. |
EnvironmentSecrets | (experimental) The environment secrets that are available to your running App Runner service. |
EnvironmentVariables | (experimental) The environment variables that are available to your running App Runner service. |
Port | (experimental) The port that your application listens to in the container. |
Runtime | (experimental) A runtime environment type for building and running an App Runner service. |
StartCommand | (experimental) The command App Runner runs to start your application. |
Properties
BuildCommand
(experimental) The command App Runner runs to build your application.
virtual string BuildCommand { get; }
Property Value
System.String
Remarks
Default: - no build command.
Stability: Experimental
Environment
(deprecated) The environment variables that are available to your running App Runner service.
virtual IDictionary<string, string> Environment { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - no environment variables.
Stability: Deprecated
EnvironmentSecrets
(experimental) The environment secrets that are available to your running App Runner service.
virtual IDictionary<string, Secret> EnvironmentSecrets { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, Secret>
Remarks
Default: - no environment secrets.
Stability: Experimental
EnvironmentVariables
(experimental) The environment variables that are available to your running App Runner service.
virtual IDictionary<string, string> EnvironmentVariables { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.String>
Remarks
Default: - no environment variables.
Stability: Experimental
Port
(experimental) The port that your application listens to in the container.
virtual string Port { get; }
Property Value
System.String
Remarks
Default: 8080
Stability: Experimental
Runtime
(experimental) A runtime environment type for building and running an App Runner service.
Runtime Runtime { get; }
Property Value
Remarks
It represents a programming language runtime.
Stability: Experimental
StartCommand
(experimental) The command App Runner runs to start your application.
virtual string StartCommand { get; }
Property Value
System.String
Remarks
Default: - no start command.
Stability: Experimental