Skip to content
v2.275.0

Experimental

@aws-cdk/aws-apprunner-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

Runtime Class ​

The code runtimes.

Example ​

ts
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 ​

CORRETTO_11Runtimecorretto_11RuntimeCORRETTO_11RuntimeCORRETTO_11RuntimeCORRETTO_11Runtimestatic#
CORRETTO 11.
CORRETTO_8Runtimecorretto_8RuntimeCORRETTO_8RuntimeCORRETTO_8RuntimeCORRETTO_8Runtimestatic#
CORRETTO 8.
DOTNET_6Runtimedotnet_6RuntimeDOTNET_6RuntimeDOTNET_6RuntimeDOTNET_6Runtimestatic#
.NET 6.
GO_1Runtimego_1RuntimeGO_1RuntimeGO_1RuntimeGO_1Runtimestatic#
Go 1.18.
namestringnamestrnameStringNamestringName*string#
The runtime name.
NODEJS_12Runtimenodejs_12RuntimeNODEJS_12RuntimeNODEJS_12RuntimeNODEJS_12Runtimestatic#
NodeJS 12.
NODEJS_14Runtimenodejs_14RuntimeNODEJS_14RuntimeNODEJS_14RuntimeNODEJS_14Runtimestatic#
NodeJS 14.
NODEJS_16Runtimenodejs_16RuntimeNODEJS_16RuntimeNODEJS_16RuntimeNODEJS_16Runtimestatic#
NodeJS 16.
NODEJS_18Runtimenodejs_18RuntimeNODEJS_18RuntimeNODEJS_18RuntimeNODEJS_18Runtimestatic#
NodeJS 18.
NODEJS_22Runtimenodejs_22RuntimeNODEJS_22RuntimeNODEJS_22RuntimeNODEJS_22Runtimestatic#
NodeJS 22.
PHP_81Runtimephp_81RuntimePHP_81RuntimePHP_81RuntimePHP_81Runtimestatic#
PHP 8.1.
PYTHON_3Runtimepython_3RuntimePYTHON_3RuntimePYTHON_3RuntimePYTHON_3Runtimestatic#
Python 3.
PYTHON_311Runtimepython_311RuntimePYTHON_311RuntimePYTHON_311RuntimePYTHON_311Runtimestatic#
Python 3.11.
RUBY_31Runtimeruby_31RuntimeRUBY_31RuntimeRUBY_31RuntimeRUBY_31Runtimestatic#
Ruby 3.1.

Methods ​

of(name: string): Runtime // chainable@staticmethod def of(name: str) -> Runtimepublic static Runtime of(String name)public static Runtime Of(string name)func Of(Name *string) Runtimestatic#
Other runtimes.
1 parameter

Parameters

  • namenamenamenameName — runtime name.