Skip to content
v2.274.0

CustomResourceLambdaRuntime Class ​

Manages lambda runtime for AWS-vended custom resources.

This feature is currently experimental.

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

declare const runtime: lambda.Runtime;
const customResourceLambdaRuntime = new custom_resources.CustomResourceLambdaRuntime(runtime);
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
// 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);
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);
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 ​

ts
new CustomResourceLambdaRuntime(lambdaRuntime: Runtime)
python
CustomResourceLambdaRuntime(lambda_runtime: Runtime)
java
new CustomResourceLambdaRuntime(Runtime lambdaRuntime)
csharp
new CustomResourceLambdaRuntime(Runtime lambdaRuntime)
go
NewCustomResourceLambdaRuntime(LambdaRuntime Runtime)

Methods ​

visit(node: IConstruct): voiddef visit(self, node: IConstruct) -> Nonepublic void visit(IConstruct node)public void Visit(IConstruct node)func Visit(Node IConstruct)#
All aspects can visit an IConstruct.