-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
84 lines (77 loc) · 2.05 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
74
75
76
77
78
79
80
81
82
83
84
variable "sep" {
description = "key separator"
nullable = false
type = string
default = " - "
}
variable "aws_region" {
description = "AWS region"
nullable = false
type = string
}
variable "apis" {
description = "default settings for aws apis"
nullable = false
type = map(object({
rest_api_id = string
root_id = string
methods = map(object({
integration_http_method = string
type = string
uri = string
connection_type = string
connection_id = string
authorization = string
authorizer_id = string
}))
responses = map(object({
headers = map(object({
return = bool
value = string
}))
selection_pattern = string
content_handling = string
}))
}))
}
variable "resources" {
description = "create resources and methods, override defaults settings"
nullable = false
type = map(object({
apis = map(object({
methods = optional(map(object({
integration_http_method = optional(string)
type = optional(string)
uri = optional(string)
connection_type = optional(string)
connection_id = optional(string)
authorization = optional(string)
authorizer_id = optional(string)
})))
responses = optional(map(object({
headers = optional(map(object({
return = optional(bool)
value = optional(string)
})))
selection_pattern = optional(string)
content_handling = optional(string)
})))
}))
methods = map(object({
request = object({
paths = map(object({
value = string
}))
querystrings = map(object({
required = bool
value = string
}))
headers = map(object({
required = bool
value = string
}))
})
responses = list(string)
}))
}))
}