Runtime
- class aws_cdk.aws_lambda.Runtime(name, family=None, *, bundling_docker_image=None, is_variable=None, supports_code_guru_profiling=None, supports_inline_code=None, supports_snap_start=None)
Bases:
object
Lambda function runtime environment.
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
Example:
import aws_cdk.aws_signer as signer signing_profile = signer.SigningProfile(self, "SigningProfile", platform=signer.Platform.AWS_LAMBDA_SHA384_ECDSA ) code_signing_config = lambda_.CodeSigningConfig(self, "CodeSigningConfig", signing_profiles=[signing_profile] ) lambda_.Function(self, "Function", code_signing_config=code_signing_config, runtime=lambda_.Runtime.NODEJS_18_X, handler="index.handler", code=lambda_.Code.from_asset(path.join(__dirname, "lambda-handler")) )
- Parameters:
name (
str
) –family (
Optional
[RuntimeFamily
]) –bundling_docker_image (
Optional
[str
]) – The Docker image name to be used for bundling in this runtime. Default: - the latest docker image “amazon/public.ecr.aws/sam/build-” from https://gallery.ecr.awsis_variable (
Optional
[bool
]) – Whether the runtime enum is meant to change over time, IE NODEJS_LATEST. Default: falsesupports_code_guru_profiling (
Optional
[bool
]) – Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler. Default: falsesupports_inline_code (
Optional
[bool
]) – Whether theZipFile
(aka inline code) property can be used with this runtime. Default: falsesupports_snap_start (
Optional
[bool
]) – Whether this runtime supports SnapStart. Default: false
Methods
- to_string()
- Return type:
str
Attributes
- ALL = [<aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>, <aws_cdk.aws_lambda.Runtime object>]
- DOTNET_6 = <aws_cdk.aws_lambda.Runtime object>
- DOTNET_8 = <aws_cdk.aws_lambda.Runtime object>
- DOTNET_CORE_1 = <aws_cdk.aws_lambda.Runtime object>
- DOTNET_CORE_2 = <aws_cdk.aws_lambda.Runtime object>
- DOTNET_CORE_2_1 = <aws_cdk.aws_lambda.Runtime object>
- DOTNET_CORE_3_1 = <aws_cdk.aws_lambda.Runtime object>
- FROM_IMAGE = <aws_cdk.aws_lambda.Runtime object>
- GO_1_X = <aws_cdk.aws_lambda.Runtime object>
- JAVA_11 = <aws_cdk.aws_lambda.Runtime object>
- JAVA_17 = <aws_cdk.aws_lambda.Runtime object>
- JAVA_21 = <aws_cdk.aws_lambda.Runtime object>
- JAVA_8 = <aws_cdk.aws_lambda.Runtime object>
- JAVA_8_CORRETTO = <aws_cdk.aws_lambda.Runtime object>
- NODEJS = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_10_X = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_12_X = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_14_X = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_16_X = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_18_X = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_20_X = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_22_X = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_4_3 = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_6_10 = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_8_10 = <aws_cdk.aws_lambda.Runtime object>
- NODEJS_LATEST = <aws_cdk.aws_lambda.Runtime object>
- PROVIDED = <aws_cdk.aws_lambda.Runtime object>
- PROVIDED_AL2 = <aws_cdk.aws_lambda.Runtime object>
- PROVIDED_AL2023 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_2_7 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_3_10 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_3_11 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_3_12 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_3_13 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_3_6 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_3_7 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_3_8 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_3_9 = <aws_cdk.aws_lambda.Runtime object>
- RUBY_2_5 = <aws_cdk.aws_lambda.Runtime object>
- RUBY_2_7 = <aws_cdk.aws_lambda.Runtime object>
- RUBY_3_2 = <aws_cdk.aws_lambda.Runtime object>
- RUBY_3_3 = <aws_cdk.aws_lambda.Runtime object>
- bundling_image
The bundling Docker image for this runtime.
- family
The runtime family.
- is_variable
Enabled for runtime enums that always target the latest available.
- name
The name of this runtime, as expected by the Lambda resource.
- supports_code_guru_profiling
Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.
- supports_inline_code
Whether the
ZipFile
(aka inline code) property can be used with this runtime.
- supports_snap_start
Whether this runtime supports snapstart.