forked from cncsc/terraform-github-org
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
40 lines (33 loc) · 1.47 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
# ---------------------------------------------------------------------------------------------------------------------
# REQUIRED VARIABLES
# ---------------------------------------------------------------------------------------------------------------------
variable "events" {
type = list(string)
description = "A list of events which should trigger the webhook. See the list of available events at https://docs.github.com/en/developers/webhooks-and-events/webhooks/webhook-events-and-payloads"
}
variable "url" {
type = string
description = "The URL to which the webhook events will be posted."
}
# ---------------------------------------------------------------------------------------------------------------------
# OPTIONAL VARIABLES
# ---------------------------------------------------------------------------------------------------------------------
variable "content_type" {
type = string
description = "The format in which the webhook events will be delivered. One of `json` or `form`."
default = "json"
validation {
condition = contains(["json", "form"], var.content_type)
error_message = "The webhook content type must be one of `json` or `form`."
}
}
variable "insecure_ssl" {
type = bool
description = "Whether or not to relax TLS validation enforcement."
default = false
}
variable "active" {
type = bool
description = "Indicate of the webhook should receive events."
default = true
}