# CustomResourceLambdaRuntime

Manages lambda runtime for AWS-vended custom resources.

This feature is currently experimental.

Implements: [IAspect](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IAspect.html)

- Source: [`custom-resources/lib/custom-resource-config/custom-resource-config.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/custom-resources/lib/custom-resource-config/custom-resource-config.ts#L140)
- Type last changed: v2.155.0 · 30 Aug 2024

## 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';
import { custom_resources } from 'aws-cdk-lib';

declare const runtime: lambda.Runtime;
const customResourceLambdaRuntime = new custom_resources.CustomResourceLambdaRuntime(runtime);
```

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_
from aws_cdk import custom_resources

# runtime: lambda.Runtime

custom_resource_lambda_runtime = custom_resources.CustomResourceLambdaRuntime(runtime)
```

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.*;
import software.amazon.awscdk.customresources.*;

Runtime runtime;

CustomResourceLambdaRuntime customResourceLambdaRuntime = new CustomResourceLambdaRuntime(runtime);
```

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;
using Amazon.CDK.CustomResources;

Runtime runtime;

var customResourceLambdaRuntime = new CustomResourceLambdaRuntime(runtime);
```

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"
import "github.com/aws/aws-cdk-go/awscdk"

var runtime Runtime

customResourceLambdaRuntime := awscdk.Custom_resources.NewCustomResourceLambdaRuntime(runtime)
```

## Initializer

TypeScript:

```ts
new CustomResourceLambdaRuntime(lambdaRuntime: Runtime)
```

Python:

```python
CustomResourceLambdaRuntime(lambda_runtime: Runtime)
```

Java:

```java
new CustomResourceLambdaRuntime(Runtime lambdaRuntime)
```

C# / .NET:

```csharp
new CustomResourceLambdaRuntime(Runtime lambdaRuntime)
```

Golang:

```go
NewCustomResourceLambdaRuntime(LambdaRuntime Runtime)
```

## Methods

- `visit(node: IConstruct): void` — All aspects can visit an IConstruct.
