AWS Fundamentals Logo
AWS Fundamentals
L2 Construct

Function

A Lambda function with configurable runtime, memory, and timeout

Import

import { Function } from 'aws-cdk-lib/aws-lambda';

Or use the module namespace:

import * as lambda from 'aws-cdk-lib/aws-lambda';
// lambda.Function

Underlying CloudFormation Resources

This L2 construct creates and manages the following CloudFormation resources.

Get the AWS Lambda Cheat Sheet

Everything you need to know about AWS Lambda on one page. HD quality, print-friendly.

Download Free Infographic