aws_cloudfront_distributionNivis 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 tonull)anycast_ip_list_id(defaults tonull)comment(defaults tonull)continuous_deployment_policy_id(defaults tonull)default_root_object(defaults tonull)http_version(defaults tonull)id(defaults tonull)is_ipv6_enabled(defaults tonull)price_class(defaults tonull)retain_on_delete(defaults tonull)staging(defaults tonull)tags(defaults tonull)tags_all(defaults tonull)wait_for_deployment(defaults tonull)web_acl_id(defaults tonull)cache_tag_config(defaults tonull)connection_function_association(defaults tonull)custom_error_response(defaults tonull)default_cache_behavior(defaults tonull)logging_config(defaults tonull)ordered_cache_behavior(defaults tonull)origin(defaults tonull)origin_group(defaults tonull)restrictions(defaults tonull)viewer_certificate(defaults tonull)viewer_mtls_config(defaults tonull)
Computed outputs
Read these from the resource's refAttr:
arncaller_referencedomain_nameetaghosted_zone_idin_progress_validation_batcheslast_modified_timelogging_v1_enabledstatustrusted_key_groupstrusted_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.