aws_cloudfront_function

Nivis Nix constructor for the aws_cloudfront_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,
  code,
  runtime,
  comment ? null,
  id ? null,
  key_value_store_associations ? null,
  cfg_name ? null,
  publish ? null,
  tags ? null,
  tags_all ? null,
  overrides ? {}
}
Required arguments
  • code
  • runtime
Optional arguments
  • comment (defaults to null)
  • id (defaults to null)
  • key_value_store_associations (defaults to null)
  • cfg_name (defaults to null)
  • publish (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • etag
  • live_stage_etag
  • status
Example
aws_cloudfront_function {
  name = "cloudfront_function";
  code = …;  # required
  runtime = …;  # required
}

The reference for every provider is generated from the provider's own schema, not copied from its documentation.