aws_lambda_function

Nivis 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_name
  • role
Optional arguments
  • architectures (defaults to null)
  • code_sha256 (defaults to null)
  • code_signing_config_arn (defaults to null)
  • description (defaults to null)
  • filename (defaults to null)
  • handler (defaults to null)
  • id (defaults to null)
  • image_uri (defaults to null)
  • kms_key_arn (defaults to null)
  • layers (defaults to null)
  • memory_size (defaults to null)
  • package_type (defaults to null)
  • publish (defaults to null)
  • publish_to (defaults to null)
  • region (defaults to null)
  • replace_security_groups_on_destroy (defaults to null)
  • replacement_security_group_ids (defaults to null)
  • reserved_concurrent_executions (defaults to null)
  • runtime (defaults to null)
  • s3_bucket (defaults to null)
  • s3_key (defaults to null)
  • s3_object_version (defaults to null)
  • skip_destroy (defaults to null)
  • source_code_hash (defaults to null)
  • source_kms_key_arn (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • timeout (defaults to null)
  • use_resource_timeout_for_propagation (defaults to null)
  • accelerator_config (defaults to null)
  • capacity_provider_config (defaults to null)
  • dead_letter_config (defaults to null)
  • durable_config (defaults to null)
  • environment (defaults to null)
  • ephemeral_storage (defaults to null)
  • file_system_config (defaults to null)
  • image_config (defaults to null)
  • logging_config (defaults to null)
  • snap_start (defaults to null)
  • tenancy_config (defaults to null)
  • timeouts (defaults to null)
  • tracing_config (defaults to null)
  • vpc_config (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • invoke_arn
  • last_modified
  • qualified_arn
  • qualified_invoke_arn
  • response_streaming_invoke_arn
  • signing_job_arn
  • signing_profile_version_arn
  • source_code_size
  • version
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.