AWS Lambda · Schema

AWS Lambda Function

Schema for an AWS Lambda function configuration. Defines the structure of a Lambda function resource including its code, runtime, execution role, memory, timeout, environment variables, VPC configuration, layers, concurrency, and other settings used by the Lambda service API.

Properties

Name Type Description
FunctionName string The name of the Lambda function. Can include letters, numbers, hyphens, and underscores. Must be between 1 and 64 characters.
FunctionArn string The function's Amazon Resource Name (ARN). Format: arn:aws:lambda:{region}:{account-id}:function:{function-name}
Runtime string The identifier of the function's runtime. Required for .zip deployment packages. Not required for container image deployment packages.
Role string The ARN of the function's execution role. This IAM role grants the function permission to access AWS services and resources.
Handler string The name of the method within your code that Lambda calls to run your function. The format includes the file name without an extension and the handler function or method name, separated by a dot (e.g.
CodeSize integer The size of the function's deployment package in bytes.
Description string A description of the function's purpose.
Timeout integer The amount of time in seconds that Lambda allows a function to run before stopping it. The default is 3 seconds. The maximum allowed value is 900 seconds (15 minutes).
MemorySize integer The amount of memory available to the function at runtime in megabytes. Lambda allocates CPU power in proportion to the amount of memory configured. The default is 128 MB. The value can be any multipl
LastModified string The date and time that the function was last updated, in ISO 8601 format (YYYY-MM-DDThh:mm:ss.sTZD).
CodeSha256 string The SHA-256 hash of the function's deployment package.
Version string The version of the Lambda function. $LATEST for the unpublished version, or a numeric string for a published version.
VpcConfig object The function's networking configuration for connecting to resources in a VPC
DeadLetterConfig object A dead-letter queue configuration that specifies the queue or topic where Lambda sends asynchronous events when they fail processing
Environment object Environment variables that are accessible from function code during execution
KMSKeyArn string The ARN of the AWS KMS key used to encrypt the function's environment variables. If not provided, Lambda uses a default service key.
TracingConfig object The function's AWS X-Ray tracing configuration
MasterArn string For Lambda@Edge functions, the ARN of the main function.
RevisionId string The latest updated revision of the function or alias. Changes each time the function configuration or code is updated.
Layers array A list of function layer ARNs (including version) applied to the function. Lambda applies layers in the order specified. Maximum of 5 layers.
State string The current state of the function. When the state is Inactive, you can reactivate the function by invoking it.
StateReason string The reason for the function's current state.
StateReasonCode string The reason code for the function's current state. When the code is Creating, you cannot invoke or modify the function.
LastUpdateStatus string The status of the last update that was performed on the function. Set to Successful after a function update completes.
LastUpdateStatusReason string The reason for the last update that was performed on the function.
LastUpdateStatusReasonCode string The reason code for the last update that was performed on the function.
PackageType string The type of deployment package. Zip for .zip file archive or Image for container image.
ImageConfigResponse object The function's image configuration values for container image deployment
Architectures array The instruction set architecture that the function supports. Lambda provides x86_64 (default) and arm64 (AWS Graviton2).
EphemeralStorage object The size of the function's /tmp directory
SnapStart object SnapStart configuration to reduce cold start latency. Currently supported for Java runtime functions.
LoggingConfig object The function's Amazon CloudWatch Logs configuration settings
Tags object Key-value pairs attached to the function for organization, cost allocation, and access control.
View JSON Schema on GitHub