Runtime
- class aws_cdk.aws_lambda.Runtime(name, family=None, *, bundling_docker_image=None, supports_code_guru_profiling=None, supports_inline_code=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_16_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.awssupports_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: 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>]
- DOTNET_6 = <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_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_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>
- PROVIDED = <aws_cdk.aws_lambda.Runtime object>
- PROVIDED_AL2 = <aws_cdk.aws_lambda.Runtime object>
- PYTHON_2_7 = <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>
- bundling_docker_image
(deprecated) DEPRECATED.
- Deprecated:
use
bundlingImage
- Stability:
deprecated
- bundling_image
The bundling Docker image for this runtime.
- family
The runtime family.
- 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.