aws_lambda_functionNivis Nix constructor for the aws_lambda_function resource (provider aws). This reference is derived from the provider binary's own schema via nivis gen — it always matches the real provider.
Constructor
{
name,
function_name,
role,
architectures ? null,
code_sha256 ? null,
code_signing_config_arn ? null,
description ? null,
filename ? null,
handler ? null,
id ? null,
image_uri ? null,
kms_key_arn ? null,
layers ? null,
memory_size ? null,
package_type ? null,
publish ? null,
publish_to ? null,
region ? null,
replace_security_groups_on_destroy ? null,
replacement_security_group_ids ? null,
reserved_concurrent_executions ? null,
runtime ? null,
s3_bucket ? null,
s3_key ? null,
s3_object_version ? null,
skip_destroy ? null,
source_code_hash ? null,
source_kms_key_arn ? null,
tags ? null,
tags_all ? null,
timeout ? null,
use_resource_timeout_for_propagation ? null,
accelerator_config ? null,
capacity_provider_config ? null,
dead_letter_config ? null,
durable_config ? null,
environment ? null,
ephemeral_storage ? null,
file_system_config ? null,
image_config ? null,
logging_config ? null,
snap_start ? null,
tenancy_config ? null,
timeouts ? null,
tracing_config ? null,
vpc_config ? null,
overrides ? {}
}Required arguments
function_namerole
Optional arguments
architectures(defaults tonull)code_sha256(defaults tonull)code_signing_config_arn(defaults tonull)description(defaults tonull)filename(defaults tonull)handler(defaults tonull)id(defaults tonull)image_uri(defaults tonull)kms_key_arn(defaults tonull)layers(defaults tonull)memory_size(defaults tonull)package_type(defaults tonull)publish(defaults tonull)publish_to(defaults tonull)region(defaults tonull)replace_security_groups_on_destroy(defaults tonull)replacement_security_group_ids(defaults tonull)reserved_concurrent_executions(defaults tonull)runtime(defaults tonull)s3_bucket(defaults tonull)s3_key(defaults tonull)s3_object_version(defaults tonull)skip_destroy(defaults tonull)source_code_hash(defaults tonull)source_kms_key_arn(defaults tonull)tags(defaults tonull)tags_all(defaults tonull)timeout(defaults tonull)use_resource_timeout_for_propagation(defaults tonull)accelerator_config(defaults tonull)capacity_provider_config(defaults tonull)dead_letter_config(defaults tonull)durable_config(defaults tonull)environment(defaults tonull)ephemeral_storage(defaults tonull)file_system_config(defaults tonull)image_config(defaults tonull)logging_config(defaults tonull)snap_start(defaults tonull)tenancy_config(defaults tonull)timeouts(defaults tonull)tracing_config(defaults tonull)vpc_config(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
arninvoke_arnlast_modifiedqualified_arnqualified_invoke_arnresponse_streaming_invoke_arnsigning_job_arnsigning_profile_version_arnsource_code_sizeversion
Example
aws_lambda_function {
name = "lambda_function";
function_name = …; # required
role = …; # required
}The reference for every provider is generated from the provider's own schema, not copied from its documentation.