aws_cloudfront_distribution

Nivis Nix constructor for the aws_cloudfront_distribution 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,
  enabled,
  aliases ? null,
  anycast_ip_list_id ? null,
  comment ? null,
  continuous_deployment_policy_id ? null,
  default_root_object ? null,
  http_version ? null,
  id ? null,
  is_ipv6_enabled ? null,
  price_class ? null,
  retain_on_delete ? null,
  staging ? null,
  tags ? null,
  tags_all ? null,
  wait_for_deployment ? null,
  web_acl_id ? null,
  cache_tag_config ? null,
  connection_function_association ? null,
  custom_error_response ? null,
  default_cache_behavior ? null,
  logging_config ? null,
  ordered_cache_behavior ? null,
  origin ? null,
  origin_group ? null,
  restrictions ? null,
  viewer_certificate ? null,
  viewer_mtls_config ? null,
  overrides ? {}
}
Required arguments
  • enabled
Optional arguments
  • aliases (defaults to null)
  • anycast_ip_list_id (defaults to null)
  • comment (defaults to null)
  • continuous_deployment_policy_id (defaults to null)
  • default_root_object (defaults to null)
  • http_version (defaults to null)
  • id (defaults to null)
  • is_ipv6_enabled (defaults to null)
  • price_class (defaults to null)
  • retain_on_delete (defaults to null)
  • staging (defaults to null)
  • tags (defaults to null)
  • tags_all (defaults to null)
  • wait_for_deployment (defaults to null)
  • web_acl_id (defaults to null)
  • cache_tag_config (defaults to null)
  • connection_function_association (defaults to null)
  • custom_error_response (defaults to null)
  • default_cache_behavior (defaults to null)
  • logging_config (defaults to null)
  • ordered_cache_behavior (defaults to null)
  • origin (defaults to null)
  • origin_group (defaults to null)
  • restrictions (defaults to null)
  • viewer_certificate (defaults to null)
  • viewer_mtls_config (defaults to null)
Computed outputs

Read these from the resource's refAttr:

  • arn
  • caller_reference
  • domain_name
  • etag
  • hosted_zone_id
  • in_progress_validation_batches
  • last_modified_time
  • logging_v1_enabled
  • status
  • trusted_key_groups
  • trusted_signers
Example
aws_cloudfront_distribution {
  name = "cloudfront_distribution";
  enabled = …;  # required
}

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