class Runtime
| Language | Type name | 
|---|---|
|  .NET | Amazon.CDK.AWS.AppRunner.Alpha.Runtime | 
|  Go | github.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#Runtime | 
|  Java | software.amazon.awscdk.services.apprunner.alpha.Runtime | 
|  Python | aws_cdk.aws_apprunner_alpha.Runtime | 
|  TypeScript (source) | @aws-cdk/aws-apprunner-alphaยปRuntime | 
The code runtimes.
Example
new apprunner.Service(this, 'Service', {
  source: apprunner.Source.fromGitHub({
    repositoryUrl: 'https://github.com/aws-containers/hello-app-runner',
    branch: 'main',
    configurationSource: apprunner.ConfigurationSourceType.API,
    codeConfigurationValues: {
      runtime: apprunner.Runtime.PYTHON_3,
      port: '8000',
      startCommand: 'python app.py',
      buildCommand: 'yum install -y pycairo && pip install -r requirements.txt',
    },
    connection: apprunner.GitHubConnection.fromConnectionArn('CONNECTION_ARN'),
  }),
});
Properties
| Name | Type | Description | 
|---|---|---|
| name | string | The runtime name. | 
| static CORRETTO_11 | Runtime | CORRETTO 11. | 
| static CORRETTO_8 | Runtime | CORRETTO 8. | 
| static DOTNET_6 | Runtime | .NET 6. | 
| static GO_1 | Runtime | Go 1.18. | 
| static NODEJS_12 | Runtime | NodeJS 12. | 
| static NODEJS_14 | Runtime | NodeJS 14. | 
| static NODEJS_16 | Runtime | NodeJS 16. | 
| static NODEJS_18 | Runtime | NodeJS 18. | 
| static NODEJS_22 | Runtime | NodeJS 22. | 
| static PHP_81 | Runtime | PHP 8.1. | 
| static PYTHON_3 | Runtime | Python 3. | 
| static PYTHON_311 | Runtime | Python 3.11. | 
| static RUBY_31 | Runtime | Ruby 3.1. | 
name
Type:
string
The runtime name.
static CORRETTO_11
Type:
Runtime
CORRETTO 11.
static CORRETTO_8
Type:
Runtime
CORRETTO 8.
static DOTNET_6
Type:
Runtime
.NET 6.
static GO_1
Type:
Runtime
Go 1.18.
static NODEJS_12
Type:
Runtime
NodeJS 12.
static NODEJS_14
Type:
Runtime
NodeJS 14.
static NODEJS_16
Type:
Runtime
NodeJS 16.
static NODEJS_18
Type:
Runtime
NodeJS 18.
static NODEJS_22
Type:
Runtime
NodeJS 22.
static PHP_81
Type:
Runtime
PHP 8.1.
static PYTHON_3
Type:
Runtime
Python 3.
static PYTHON_311
Type:
Runtime
Python 3.11.
static RUBY_31
Type:
Runtime
Ruby 3.1.
Methods
| Name | Description | 
|---|---|
| static of(name) | Other runtimes. | 
static of(name)
public static of(name: string): Runtime
Parameters
- name stringโ runtime name.
Returns
Other runtimes.
See also: [https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfigurationvalues.html#cfn-apprunner-service-codeconfigurationvalues-runtime for all available runtimes.](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfigurationvalues.html#cfn-apprunner-service-codeconfigurationvalues-runtime for all available runtimes.)
