class Runtime
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.AppRunner.Runtime |
Java | software.amazon.awscdk.services.apprunner.Runtime |
Python | aws_cdk.aws_apprunner.Runtime |
TypeScript (source) | @aws-cdk/aws-apprunner » 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 NODEJS_12 | Runtime | NodeJS 12. |
static PYTHON_3 | Runtime | Python 3. |
name
Type:
string
The runtime name.
static NODEJS_12
Type:
Runtime
NodeJS 12.
static PYTHON_3
Type:
Runtime
Python 3.
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.)