Function
Creates and manages AWS Lambda functions with support for Node.js runtimes, custom handlers, environment variables, and function URLs. Handles deployment packaging, IAM role stabilization, and function updates.Props
Bundle for the function. Use
Bundle() from alchemy/esbuild to create a code bundle.ARN of the IAM role that Lambda assumes when executing the function.
Function handler in the format ‘file.function’. For Node.js this is typically ‘index.handler’ or similar.
Name of the Lambda function.Default:
${app}-${stage}-${id}Lambda runtime environment for the function.Default:
nodejs20.xCPU architecture for the function.Default:
x86_64Description of the function’s purpose.
Maximum execution time in seconds.Default:
3Amount of memory available to the function in MB.Default:
128Environment variables available to the function code.
Resource tags for the function.
Function URL configuration for direct HTTP(S) invocation.
Lambda layers for the function. Use the layer ARN.
Output
ARN of the Lambda function.
Name of the Function.
Timestamp of the last function modification.
Function version.
ARN with version suffix.
ARN for invoking the function through API Gateway.
SHA256 hash of the function code.
Size of the function code in bytes.
Size of ephemeral storage (/tmp) in MB.
List of supported CPU architectures.
ARN of the master function (Lambda@Edge only).
Unique identifier for the current function code/config.
Current state of the function.
Reason for the current state.
Code for the current state reason.
Status of the last update operation.
Reason for the last update status.
Code for the last update status reason.
Function package type (Zip or Image).
ARN of the signing profile version.
ARN of the signing job.
Function URL if configured.