Class CodeConfigurationValues
(experimental) Describes the basic configuration needed for building and running an AWS App Runner service.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.AppRunner
Assembly: Amazon.CDK.AWS.AppRunner.dll
Syntax (csharp)
public class CodeConfigurationValues : Object, ICodeConfigurationValues
Syntax (vb)
Public Class CodeConfigurationValues
Inherits Object
Implements 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
Constructors
CodeConfigurationValues() |
Properties
BuildCommand | (experimental) The command App Runner runs to build your application. |
Environment | (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. |
Constructors
CodeConfigurationValues()
public CodeConfigurationValues()
Properties
BuildCommand
(experimental) The command App Runner runs to build your application.
public string BuildCommand { get; set; }
Property Value
System.String
Remarks
Default: - no build command.
Stability: Experimental
Environment
(experimental) The environment variables that are available to your running App Runner service.
public IDictionary<string, string> Environment { get; set; }
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.
public string Port { get; set; }
Property Value
System.String
Remarks
Default: 8080
Stability: Experimental
Runtime
(experimental) A runtime environment type for building and running an App Runner service.
public Runtime Runtime { get; set; }
Property Value
Remarks
It represents a programming language runtime.
Stability: Experimental
StartCommand
(experimental) The command App Runner runs to start your application.
public string StartCommand { get; set; }
Property Value
System.String
Remarks
Default: - no start command.
Stability: Experimental