Class Runtime
Lambda function runtime environment.
Inheritance
Namespace: Amazon.CDK.AWS.Lambda
Assembly: Amazon.CDK.AWS.Lambda.dll
Syntax (csharp)
public class Runtime : DeputyBase
Syntax (vb)
Public Class Runtime
Inherits DeputyBase
Remarks
If you need to use a runtime name that doesn't exist as a static member, you
can instantiate a Runtime
object, e.g: new Runtime('nodejs99.99')
.
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Signer;
var signingProfile = new SigningProfile(this, "SigningProfile", new SigningProfileProps {
Platform = Platform.AWS_LAMBDA_SHA384_ECDSA
});
var codeSigningConfig = new CodeSigningConfig(this, "CodeSigningConfig", new CodeSigningConfigProps {
SigningProfiles = new [] { signingProfile }
});
new Function(this, "Function", new FunctionProps {
CodeSigningConfig = codeSigningConfig,
Runtime = Runtime.NODEJS_16_X,
Handler = "index.handler",
Code = Code.FromAsset(Join(__dirname, "lambda-handler"))
});
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 |
Runtime(String, Nullable<RuntimeFamily>, ILambdaRuntimeProps) |
Properties
ALL | A list of all known |
BundlingDockerImage | (deprecated) DEPRECATED. |
BundlingImage | The bundling Docker image for this runtime. |
DOTNET_6 | The .NET 6 runtime (dotnet6). |
DOTNET_CORE_1 | The .NET Core 1.0 runtime (dotnetcore1.0) Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime. |
DOTNET_CORE_2 | The .NET Core 2.0 runtime (dotnetcore2.0) Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime. |
DOTNET_CORE_2_1 | The .NET Core 2.1 runtime (dotnetcore2.1) Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime. |
DOTNET_CORE_3_1 | The .NET Core 3.1 runtime (dotnetcore3.1). |
Family | The runtime family. |
FROM_IMAGE | A special runtime entry to be used when function is using a docker image. |
GO_1_X | The Go 1.x runtime (go1.x). |
JAVA_11 | The Java 11 runtime (java11). |
JAVA_8 | The Java 8 runtime (java8). |
JAVA_8_CORRETTO | The Java 8 Corretto runtime (java8.al2). |
Name | The name of this runtime, as expected by the Lambda resource. |
NODEJS | (deprecated) The NodeJS runtime (nodejs). |
NODEJS_10_X | (deprecated) The NodeJS 10.x runtime (nodejs10.x). |
NODEJS_12_X | The NodeJS 12.x runtime (nodejs12.x). |
NODEJS_14_X | The NodeJS 14.x runtime (nodejs14.x). |
NODEJS_16_X | The NodeJS 16.x runtime (nodejs16.x). |
NODEJS_4_3 | (deprecated) The NodeJS 4.3 runtime (nodejs4.3). |
NODEJS_6_10 | (deprecated) The NodeJS 6.10 runtime (nodejs6.10). |
NODEJS_8_10 | (deprecated) The NodeJS 8.10 runtime (nodejs8.10). |
PROVIDED | The custom provided runtime (provided). |
PROVIDED_AL2 | The custom provided runtime (provided). |
PYTHON_2_7 | (deprecated) The Python 2.7 runtime (python2.7). |
PYTHON_3_6 | (deprecated) The Python 3.6 runtime (python3.6) (not recommended). |
PYTHON_3_7 | The Python 3.7 runtime (python3.7). |
PYTHON_3_8 | The Python 3.8 runtime (python3.8). |
PYTHON_3_9 | The Python 3.9 runtime (python3.9). |
RUBY_2_5 | The Ruby 2.5 runtime (ruby2.5) Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime. |
RUBY_2_7 | The Ruby 2.7 runtime (ruby2.7). |
SupportsCodeGuruProfiling | Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler. |
SupportsInlineCode | Whether the |
Methods
RuntimeEquals(Runtime) | |
ToString() |
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
Runtime(String, Nullable<RuntimeFamily>, ILambdaRuntimeProps)
public Runtime(string name, Nullable<RuntimeFamily> family = null, ILambdaRuntimeProps props = null)
Parameters
- name System.String
- family System.Nullable<RuntimeFamily>
- props ILambdaRuntimeProps
Properties
ALL
BundlingDockerImage
(deprecated) DEPRECATED.
public virtual BundlingDockerImage BundlingDockerImage { get; }
Property Value
Remarks
Stability: Deprecated
BundlingImage
The bundling Docker image for this runtime.
public virtual DockerImage BundlingImage { get; }
Property Value
DOTNET_6
DOTNET_CORE_1
The .NET Core 1.0 runtime (dotnetcore1.0) Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
public static Runtime DOTNET_CORE_1 { get; }
Property Value
DOTNET_CORE_2
The .NET Core 2.0 runtime (dotnetcore2.0) Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
public static Runtime DOTNET_CORE_2 { get; }
Property Value
DOTNET_CORE_2_1
The .NET Core 2.1 runtime (dotnetcore2.1) Legacy runtime no longer supported by AWS Lambda. Migrate to the latest .NET Core runtime.
public static Runtime DOTNET_CORE_2_1 { get; }
Property Value
DOTNET_CORE_3_1
The .NET Core 3.1 runtime (dotnetcore3.1).
public static Runtime DOTNET_CORE_3_1 { get; }
Property Value
Family
The runtime family.
public virtual Nullable<RuntimeFamily> Family { get; }
Property Value
System.Nullable<RuntimeFamily>
FROM_IMAGE
A special runtime entry to be used when function is using a docker image.
public static Runtime FROM_IMAGE { get; }
Property Value
GO_1_X
JAVA_11
JAVA_8
JAVA_8_CORRETTO
The Java 8 Corretto runtime (java8.al2).
public static Runtime JAVA_8_CORRETTO { get; }
Property Value
Name
The name of this runtime, as expected by the Lambda resource.
public virtual string Name { get; }
Property Value
System.String
NODEJS
(deprecated) The NodeJS runtime (nodejs).
public static Runtime NODEJS { get; }
Property Value
Remarks
Stability: Deprecated
NODEJS_10_X
(deprecated) The NodeJS 10.x runtime (nodejs10.x).
public static Runtime NODEJS_10_X { get; }
Property Value
Remarks
Stability: Deprecated
NODEJS_12_X
The NodeJS 12.x runtime (nodejs12.x).
public static Runtime NODEJS_12_X { get; }
Property Value
NODEJS_14_X
The NodeJS 14.x runtime (nodejs14.x).
public static Runtime NODEJS_14_X { get; }
Property Value
NODEJS_16_X
The NodeJS 16.x runtime (nodejs16.x).
public static Runtime NODEJS_16_X { get; }
Property Value
NODEJS_4_3
(deprecated) The NodeJS 4.3 runtime (nodejs4.3).
public static Runtime NODEJS_4_3 { get; }
Property Value
Remarks
Stability: Deprecated
NODEJS_6_10
(deprecated) The NodeJS 6.10 runtime (nodejs6.10).
public static Runtime NODEJS_6_10 { get; }
Property Value
Remarks
Stability: Deprecated
NODEJS_8_10
(deprecated) The NodeJS 8.10 runtime (nodejs8.10).
public static Runtime NODEJS_8_10 { get; }
Property Value
Remarks
Stability: Deprecated
PROVIDED
The custom provided runtime (provided).
public static Runtime PROVIDED { get; }
Property Value
PROVIDED_AL2
The custom provided runtime (provided).
public static Runtime PROVIDED_AL2 { get; }
Property Value
PYTHON_2_7
(deprecated) The Python 2.7 runtime (python2.7).
public static Runtime PYTHON_2_7 { get; }
Property Value
Remarks
Stability: Deprecated
PYTHON_3_6
(deprecated) The Python 3.6 runtime (python3.6) (not recommended).
public static Runtime PYTHON_3_6 { get; }
Property Value
Remarks
The Python 3.6 runtime is deprecated as of July 2022.
Stability: Deprecated
PYTHON_3_7
The Python 3.7 runtime (python3.7).
public static Runtime PYTHON_3_7 { get; }
Property Value
PYTHON_3_8
The Python 3.8 runtime (python3.8).
public static Runtime PYTHON_3_8 { get; }
Property Value
PYTHON_3_9
The Python 3.9 runtime (python3.9).
public static Runtime PYTHON_3_9 { get; }
Property Value
RUBY_2_5
The Ruby 2.5 runtime (ruby2.5) Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Ruby runtime.
public static Runtime RUBY_2_5 { get; }
Property Value
RUBY_2_7
SupportsCodeGuruProfiling
Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.
public virtual bool SupportsCodeGuruProfiling { get; }
Property Value
System.Boolean
SupportsInlineCode
Whether the ZipFile
(aka inline code) property can be used with this runtime.
public virtual bool SupportsInlineCode { get; }
Property Value
System.Boolean
Methods
RuntimeEquals(Runtime)
ToString()
public override string ToString()
Returns
System.String