Class Runtime
(experimental) The code runtimes.
Inheritance
Namespace: Amazon.CDK.AWS.AppRunner.Alpha
Assembly: Amazon.CDK.AWS.AppRunner.Alpha.dll
Syntax (csharp)
public class Runtime : DeputyBase
Syntax (vb)
Public Class Runtime
Inherits DeputyBase
Remarks
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
Runtime(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Runtime(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
CORRETTO_11 | (experimental) CORRETTO 11. |
CORRETTO_8 | (experimental) CORRETTO 8. |
DOTNET_6 | (experimental) .NET 6. |
GO_1 | (experimental) Go 1.18. |
Name | (experimental) The runtime name. |
NODEJS_12 | (experimental) NodeJS 12. |
NODEJS_14 | (experimental) NodeJS 14. |
NODEJS_16 | (experimental) NodeJS 16. |
PHP_81 | (experimental) PHP 8.1. |
PYTHON_3 | (experimental) Python 3. |
RUBY_31 | (experimental) Ruby 3.1. |
Methods
Of(String) | (experimental) Other runtimes. |
Constructors
Runtime(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Runtime(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Runtime(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Runtime(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
CORRETTO_11
(experimental) CORRETTO 11.
public static Runtime CORRETTO_11 { get; }
Property Value
Remarks
Stability: Experimental
CORRETTO_8
(experimental) CORRETTO 8.
public static Runtime CORRETTO_8 { get; }
Property Value
Remarks
Stability: Experimental
DOTNET_6
(experimental) .NET 6.
public static Runtime DOTNET_6 { get; }
Property Value
Remarks
Stability: Experimental
GO_1
(experimental) Go 1.18.
public static Runtime GO_1 { get; }
Property Value
Remarks
Stability: Experimental
Name
(experimental) The runtime name.
public virtual string Name { get; }
Property Value
System.String
Remarks
Stability: Experimental
NODEJS_12
(experimental) NodeJS 12.
public static Runtime NODEJS_12 { get; }
Property Value
Remarks
Stability: Experimental
NODEJS_14
(experimental) NodeJS 14.
public static Runtime NODEJS_14 { get; }
Property Value
Remarks
Stability: Experimental
NODEJS_16
(experimental) NodeJS 16.
public static Runtime NODEJS_16 { get; }
Property Value
Remarks
Stability: Experimental
PHP_81
(experimental) PHP 8.1.
public static Runtime PHP_81 { get; }
Property Value
Remarks
Stability: Experimental
PYTHON_3
(experimental) Python 3.
public static Runtime PYTHON_3 { get; }
Property Value
Remarks
Stability: Experimental
RUBY_31
(experimental) Ruby 3.1.
public static Runtime RUBY_31 { get; }
Property Value
Remarks
Stability: Experimental
Methods
Of(String)
(experimental) Other runtimes.
public static Runtime Of(string name)
Parameters
- name System.String
runtime name.
Returns
Remarks
Stability: Experimental
See: https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-apprunner-service-codeconfigurationvalues.html#cfn-apprunner-service-codeconfigurationvalues-runtime for all available runtimes.