generated from cloudposse/terraform-example-module
-
-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy pathvariables.tf
55 lines (47 loc) · 1.86 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
variable "connection_name" {
type = string
description = "Connection name. If not provided, the name will be generated from the context."
default = null
}
variable "connection_description" {
type = string
description = "Connection description."
default = null
}
variable "catalog_id" {
type = string
description = "The ID of the Data Catalog in which to create the connection. If none is supplied, the AWS account ID is used by default."
default = null
}
variable "connection_type" {
type = string
description = "The type of the connection. Supported are: JDBC, MONGODB, KAFKA, and NETWORK. Defaults to JBDC"
validation {
condition = contains(["JDBC", "MONGODB", "KAFKA", "NETWORK"], var.connection_type)
error_message = "Supported are: JDBC, MONGODB, KAFKA, and NETWORK."
}
}
variable "connection_properties" {
type = map(string)
description = "A map of key-value pairs used as parameters for this connection."
default = null
}
variable "match_criteria" {
type = list(string)
description = "A list of criteria that can be used in selecting this connection."
default = null
}
variable "physical_connection_requirements" {
# type = object({
# # The availability zone of the connection. This field is redundant and implied by subnet_id, but is currently an API requirement
# availability_zone = string
# # The security group ID list used by the connection
# security_group_id_list = list(string)
# # The subnet ID used by the connection
# subnet_id = string
# })
# Using `type = any` since some of the the fields are optional and we don't want to force the caller to specify all of them and set to `null` those not used
type = any
description = "Physical connection requirements, such as VPC and SecurityGroup."
default = null
}