@Generated(value="jsii-pacmak/1.63.2 (build a8a8833)",
date="2022-08-09T19:16:38.943Z")
public class Runtime
extends software.amazon.jsii.JsiiObject
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')
.
Example:
import software.amazon.awscdk.services.signer.*; SigningProfile signingProfile = SigningProfile.Builder.create(this, "SigningProfile") .platform(Platform.AWS_LAMBDA_SHA384_ECDSA) .build(); CodeSigningConfig codeSigningConfig = CodeSigningConfig.Builder.create(this, "CodeSigningConfig") .signingProfiles(List.of(signingProfile)) .build(); Function.Builder.create(this, "Function") .codeSigningConfig(codeSigningConfig) .runtime(Runtime.NODEJS_16_X) .handler("index.handler") .code(Code.fromAsset(join(__dirname, "lambda-handler"))) .build();
Modifier and Type | Class and Description |
---|---|
static class |
Runtime.Builder
A fluent builder for
Runtime . |
Modifier and Type | Field and Description |
---|---|
static java.util.List<Runtime> |
ALL
A list of all known `Runtime`'s.
|
static Runtime |
DOTNET_6
The .NET 6 runtime (dotnet6).
|
static Runtime |
DOTNET_CORE_1
The .NET Core 1.0 runtime (dotnetcore1.0) Legacy runtime no longer supported by AWS Lambda.
|
static Runtime |
DOTNET_CORE_2
The .NET Core 2.0 runtime (dotnetcore2.0) Legacy runtime no longer supported by AWS Lambda.
|
static Runtime |
DOTNET_CORE_2_1
The .NET Core 2.1 runtime (dotnetcore2.1) Legacy runtime no longer supported by AWS Lambda.
|
static Runtime |
DOTNET_CORE_3_1
The .NET Core 3.1 runtime (dotnetcore3.1).
|
static Runtime |
FROM_IMAGE
A special runtime entry to be used when function is using a docker image.
|
static Runtime |
GO_1_X
The Go 1.x runtime (go1.x).
|
static Runtime |
JAVA_11
The Java 11 runtime (java11).
|
static Runtime |
JAVA_8
The Java 8 runtime (java8).
|
static Runtime |
JAVA_8_CORRETTO
The Java 8 Corretto runtime (java8.al2).
|
static Runtime |
NODEJS
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
|
static Runtime |
NODEJS_10_X
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
|
static Runtime |
NODEJS_12_X
The NodeJS 12.x runtime (nodejs12.x).
|
static Runtime |
NODEJS_14_X
The NodeJS 14.x runtime (nodejs14.x).
|
static Runtime |
NODEJS_16_X
The NodeJS 16.x runtime (nodejs16.x).
|
static Runtime |
NODEJS_4_3
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
|
static Runtime |
NODEJS_6_10
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
|
static Runtime |
NODEJS_8_10
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest NodeJS runtime.
|
static Runtime |
PROVIDED
The custom provided runtime (provided).
|
static Runtime |
PROVIDED_AL2
The custom provided runtime (provided).
|
static Runtime |
PYTHON_2_7
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
|
static Runtime |
PYTHON_3_6
Deprecated.
Legacy runtime no longer supported by AWS Lambda. Migrate to the latest Python runtime.
|
static Runtime |
PYTHON_3_7
The Python 3.7 runtime (python3.7).
|
static Runtime |
PYTHON_3_8
The Python 3.8 runtime (python3.8).
|
static Runtime |
PYTHON_3_9
The Python 3.9 runtime (python3.9).
|
static Runtime |
RUBY_2_5
The Ruby 2.5 runtime (ruby2.5) Legacy runtime no longer supported by AWS Lambda.
|
static Runtime |
RUBY_2_7
The Ruby 2.7 runtime (ruby2.7).
|
Modifier | Constructor and Description |
---|---|
protected |
Runtime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Runtime(software.amazon.jsii.JsiiObjectRef objRef) |
|
Runtime(java.lang.String name,
RuntimeFamily family) |
|
Runtime(java.lang.String name,
RuntimeFamily family,
LambdaRuntimeProps props) |
Modifier and Type | Method and Description |
---|---|
BundlingDockerImage |
getBundlingDockerImage()
Deprecated.
use `bundlingImage`
|
DockerImage |
getBundlingImage()
The bundling Docker image for this runtime.
|
RuntimeFamily |
getFamily()
The runtime family.
|
java.lang.String |
getName()
The name of this runtime, as expected by the Lambda resource.
|
java.lang.Boolean |
getSupportsCodeGuruProfiling()
Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.
|
java.lang.Boolean |
getSupportsInlineCode()
Whether the ``ZipFile`` (aka inline code) property can be used with this runtime.
|
java.lang.Boolean |
runtimeEquals(Runtime other) |
java.lang.String |
toString() |
public static final java.util.List<Runtime> ALL
public static final Runtime DOTNET_6
public static final Runtime DOTNET_CORE_1
public static final Runtime DOTNET_CORE_2
public static final Runtime DOTNET_CORE_2_1
public static final Runtime DOTNET_CORE_3_1
public static final Runtime FROM_IMAGE
public static final Runtime GO_1_X
public static final Runtime JAVA_11
public static final Runtime JAVA_8
public static final Runtime JAVA_8_CORRETTO
@Deprecated public static final Runtime NODEJS
@Deprecated public static final Runtime NODEJS_10_X
public static final Runtime NODEJS_12_X
public static final Runtime NODEJS_14_X
public static final Runtime NODEJS_16_X
@Deprecated public static final Runtime NODEJS_4_3
@Deprecated public static final Runtime NODEJS_6_10
@Deprecated public static final Runtime NODEJS_8_10
public static final Runtime PROVIDED
public static final Runtime PROVIDED_AL2
@Deprecated public static final Runtime PYTHON_2_7
@Deprecated public static final Runtime PYTHON_3_6
The Python 3.6 runtime is deprecated as of July 2022.
public static final Runtime PYTHON_3_7
public static final Runtime PYTHON_3_8
public static final Runtime PYTHON_3_9
public static final Runtime RUBY_2_5
public static final Runtime RUBY_2_7
protected Runtime(software.amazon.jsii.JsiiObjectRef objRef)
protected Runtime(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
public Runtime(java.lang.String name, RuntimeFamily family, LambdaRuntimeProps props)
name
- This parameter is required.family
- props
- public Runtime(java.lang.String name, RuntimeFamily family)
name
- This parameter is required.family
- public java.lang.Boolean runtimeEquals(Runtime other)
other
- This parameter is required.public java.lang.String toString()
@Deprecated public BundlingDockerImage getBundlingDockerImage()
public DockerImage getBundlingImage()
public java.lang.String getName()
public java.lang.Boolean getSupportsCodeGuruProfiling()
public java.lang.Boolean getSupportsInlineCode()
public RuntimeFamily getFamily()