@aws-cdk_aws-apprunner-alpha.Runtime

class Runtime ๐Ÿ”น

LanguageType name
.NETAmazon.CDK.AWS.AppRunner.Alpha.Runtime
Gogithub.com/aws/aws-cdk-go/awscdkapprunneralpha/v2#Runtime
Javasoftware.amazon.awscdk.services.apprunner.alpha.Runtime
Pythonaws_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

NameTypeDescription
name๐Ÿ”นstringThe runtime name.
static CORRETTO_11๐Ÿ”นRuntimeCORRETTO 11.
static CORRETTO_8๐Ÿ”นRuntimeCORRETTO 8.
static DOTNET_6๐Ÿ”นRuntime.NET 6.
static GO_1๐Ÿ”นRuntimeGo 1.18.
static NODEJS_12๐Ÿ”นRuntimeNodeJS 12.
static NODEJS_14๐Ÿ”นRuntimeNodeJS 14.
static NODEJS_16๐Ÿ”นRuntimeNodeJS 16.
static PHP_81๐Ÿ”นRuntimePHP 8.1.
static PYTHON_3๐Ÿ”นRuntimePython 3.
static RUBY_31๐Ÿ”นRuntimeRuby 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 PHP_81๐Ÿ”น

Type: Runtime

PHP 8.1.


static PYTHON_3๐Ÿ”น

Type: Runtime

Python 3.


static RUBY_31๐Ÿ”น

Type: Runtime

Ruby 3.1.

Methods

NameDescription
static of(name)๐Ÿ”นOther runtimes.

static of(name)๐Ÿ”น

public static of(name: string): Runtime

Parameters

  • name string โ€” runtime name.

Returns

  • Runtime

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.)