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
required
Bundle for the function. Use
Bundle() from alchemy/esbuild to create a code bundle.string
required
ARN of the IAM role that Lambda assumes when executing the function.
string
required
Function handler in the format ‘file.function’. For Node.js this is typically ‘index.handler’ or similar.
string
Name of the Lambda function.Default:
${app}-${stage}-${id}Runtime
Lambda runtime environment for the function.Default:
nodejs20.xArchitecture
CPU architecture for the function.Default:
x86_64string
Description of the function’s purpose.
number
Maximum execution time in seconds.Default:
3number
Amount of memory available to the function in MB.Default:
128Record<string, string>
Environment variables available to the function code.
Record<string, string>
Resource tags for the function.
object
Function URL configuration for direct HTTP(S) invocation.
string[]
Lambda layers for the function. Use the layer ARN.
Output
string
ARN of the Lambda function.
string
Name of the Function.
string
Timestamp of the last function modification.
string
Function version.
string
ARN with version suffix.
string
ARN for invoking the function through API Gateway.
string
SHA256 hash of the function code.
number
Size of the function code in bytes.
number
Size of ephemeral storage (/tmp) in MB.
string[]
List of supported CPU architectures.
string
ARN of the master function (Lambda@Edge only).
string
Unique identifier for the current function code/config.
string
Current state of the function.
string
Reason for the current state.
string
Code for the current state reason.
string
Status of the last update operation.
string
Reason for the last update status.
string
Code for the last update status reason.
string
Function package type (Zip or Image).
string
ARN of the signing profile version.
string
ARN of the signing job.
string
Function URL if configured.