Skip to content
v2.274.0

LambdaRuntimeProps Struct ​

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_lambda as lambda } from 'aws-cdk-lib';
const lambdaRuntimeProps: lambda.LambdaRuntimeProps = {
  bundlingDockerImage: 'bundlingDockerImage',
  isVariable: false,
  supportsCodeGuruProfiling: false,
  supportsInlineCode: false,
  supportsSnapStart: false,
};

Properties ​

bundlingDockerImagestringbundling_docker_imagestrbundlingDockerImageStringBundlingDockerImagestringBundlingDockerImage*string#
The Docker image name to be used for bundling in this runtime.

Default: the latest docker image "amazon/public.ecr.aws/sam/build-<runtime>" from https://gallery.ecr.aws

isVariablebooleanis_variableboolisVariableBooleanIsVariableboolIsVariable*bool= false#
Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.
supportsCodeGuruProfilingbooleansupports_code_guru_profilingboolsupportsCodeGuruProfilingBooleanSupportsCodeGuruProfilingboolSupportsCodeGuruProfiling*bool= false#
Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.
supportsInlineCodebooleansupports_inline_codeboolsupportsInlineCodeBooleanSupportsInlineCodeboolSupportsInlineCode*bool= false#
Whether the ``ZipFile`` (aka inline code) property can be used with this runtime.
supportsSnapStartbooleansupports_snap_startboolsupportsSnapStartBooleanSupportsSnapStartboolSupportsSnapStart*bool= false#
Whether this runtime supports SnapStart.