# LambdaRuntimeProps

Used as props by: [Runtime](/cdk/api/v2/docs/aws-cdk-lib.aws_lambda.Runtime.html)

- Source: [`aws-lambda/lib/runtime.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-lambda/lib/runtime.ts#L6)
- Type last changed: v2.94.0 · 1 Sep 2023

## Example

TypeScript:

```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:

```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:

```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();
```

C# / .NET:

```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
};
```

Golang:

```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

- `bundlingDockerImage`: 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

- `isVariable`: boolean = false — Whether the runtime enum is meant to change over time, IE NODEJS_LATEST.

- `supportsCodeGuruProfiling`: boolean = false — Whether this runtime is integrated with and supported for profiling using Amazon CodeGuru Profiler.

- `supportsInlineCode`: boolean = false — Whether the ``ZipFile`` (aka inline code) property can be used with this runtime.

- `supportsSnapStart`: boolean = false — Whether this runtime supports SnapStart.
