-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathvariables.tf
73 lines (63 loc) · 2.52 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
variable "name" {
description = "The name of the cache policy"
}
variable "description" {
description = "A description of the cache policy"
}
variable "default_ttl" {
type = number
default = 60
description = "Default amount of time (in seconds) that an object is in a CloudFront cache"
}
variable "min_ttl" {
type = number
default = 0
description = "Minimum amount of time that you want objects to stay in CloudFront caches"
}
variable "max_ttl" {
type = number
default = 31536000
description = "Maximum amount of time (in seconds) that an object is in a CloudFront cache"
}
variable "allow_gzip" {
type = bool
default = true
description = "A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin."
}
variable "allow_brotli" {
type = bool
default = true
description = "A flag that can affect whether the Accept-Encoding HTTP header is included in the cache key and included in requests that CloudFront sends to the origin."
}
variable "cookies_config" {
type = object({
behavior = string
items = optional(list(string))
})
default = { behavior = "none" }
description = "Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin"
}
variable "headers_config" {
type = object({
behavior = string
items = optional(list(string))
})
default = { behavior = "none" }
description = "Object that determines whether any HTTP headers (and if so, which headers) are included in the cache key and automatically included in requests that CloudFront sends to the origin"
}
variable "cookie_config" {
type = object({
behavior = string
items = optional(list(string))
})
default = { behavior = "none" }
description = "Object that determines whether any cookies in viewer requests (and if so, which cookies) are included in the cache key and automatically included in requests that CloudFront sends to the origin"
}
variable "query_strings_config" {
type = object({
behavior = string
items = optional(list(string))
})
default = { behavior = "none" }
description = "Object that determines whether any URL query strings in viewer requests (and if so, which query strings) are included in the cache key and automatically included in requests that CloudFront sends to the origin"
}