Skip to content
v2.277.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,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_lambda as lambda_

lambda_runtime_props = lambda.LambdaRuntimeProps(
    bundling_docker_image="bundlingDockerImage",
    is_variable=False,
    supports_code_guru_profiling=False,
    supports_inline_code=False,
    supports_snap_start=False
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.lambda.*;

LambdaRuntimeProps lambdaRuntimeProps = LambdaRuntimeProps.builder()
        .bundlingDockerImage("bundlingDockerImage")
        .isVariable(false)
        .supportsCodeGuruProfiling(false)
        .supportsInlineCode(false)
        .supportsSnapStart(false)
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Lambda;

var lambdaRuntimeProps = new LambdaRuntimeProps {
    BundlingDockerImage = "bundlingDockerImage",
    IsVariable = false,
    SupportsCodeGuruProfiling = false,
    SupportsInlineCode = false,
    SupportsSnapStart = false
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

lambdaRuntimeProps := &LambdaRuntimeProps{
	BundlingDockerImage: jsii.String("bundlingDockerImage"),
	IsVariable: jsii.Boolean(false),
	SupportsCodeGuruProfiling: jsii.Boolean(false),
	SupportsInlineCode: jsii.Boolean(false),
	SupportsSnapStart: jsii.Boolean(false),
}

Properties ​

bundlingDockerImageoptionalstringbundling_docker_imageoptionalstrbundlingDockerImageoptionalStringBundlingDockerImageoptionalstringBundlingDockerImageoptional*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

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