cache_keys_in_cookies |
Whether any cookies in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values for cookie_behavior are none , whitelist , allExcept , and all . Defaults to none . items - A list of cookie names. |
object({ behavior = optional(string, "none") items = optional(set(string), []) }) |
{} |
no |
cache_keys_in_headers |
Whether any HTTP headers are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values for header_behavior are none and whitelist . Defaults to none . items - A list of header names. |
object({ behavior = optional(string, "none") items = optional(set(string), []) }) |
{} |
no |
cache_keys_in_query_strings |
Whether URL query strings in viewer requests are included in the cache key and automatically included in requests that CloudFront sends to the origin. Valid values for query_string_behavior are none , whitelist , allExcept , and all . Defaults to none . items - A list of query string names. |
object({ behavior = optional(string, "none") items = optional(set(string), []) }) |
{} |
no |
default_ttl |
Amount of time, in seconds, that objects are allowed to remain in the CloudFront cache before CloudFront sends a new request to the origin server to check if the object has been updated. Defaults to 86400 (one day). |
number |
86400 |
no |
description |
The description of the cache policy. |
string |
"Managed by Terraform." |
no |
max_ttl |
Maximum amount of time, in seconds, that objects stay in the CloudFront cache before CloudFront sends another request to the origin to see if the object has been updated. Defaults to 31536000 (one year). |
number |
31536000 |
no |
min_ttl |
Minimum amount of time, in seconds, that objects should remain in the CloudFront cache before a new request is sent to the origin to check for updates. Defaults to 1 . |
number |
1 |
no |
name |
A unique name to identify the CloudFront Cache Policy. |
string |
n/a |
yes |
supported_compression_formats |
A list of compression formats to enable, when the viewer supports it. Accept-Encoding HTTP header is included in the cache key and in requests sent to the origin by CloudFront. |
set(string) |
[ "BROTLI", "GZIP" ] |
no |