-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathvariable.tf
95 lines (83 loc) · 3.08 KB
/
variable.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
85
86
87
88
89
90
91
92
93
94
95
variable "resource_group_name" {
type = string
description = "The resource group where to deploy the EventHub Namespace."
}
variable "location" {
type = string
description = "Specifies the supported Azure location where the resource exists."
}
variable "workload_name" {
type = string
description = "Specifies the workload name that will use this resource. This will be used in the resource name."
}
variable "sku" {
type = string
description = "Defines which tier to use. Valid options are Basic or Standard."
validation {
condition = (var.sku == "Basic" || var.sku == "Standard")
error_message = "Invalid sku. Valid options for sku are Basic or Standard."
}
}
variable "capacity" {
type = number
description = "Specifies the Capacity / Throughput Units. Maximum value could be 20."
validation {
condition = var.capacity >= 1 && var.capacity <= 20
error_message = "The Capacity of the Eventhub Namespace must be between 1 and 20."
}
}
variable "maximum_throughput_units" {
type = number
description = "Specifies the maximum number of throughput units when Auto Inflate is Enabled. Valid values range from 1 - 20. This option will enable 'Auto Inflate' capability of Eventhub namespace'"
validation {
condition = (
var.maximum_throughput_units == null ||
coalesce(var.maximum_throughput_units, 1) >= 1 && coalesce(var.maximum_throughput_units, 20) <= 20)
error_message = "The Max. throughput units of the Eventhub Namespace must be between 1 and 20."
}
default = null
}
variable "zone_redundant" {
type = bool
description = "Is zone_redundancy enabled for the EventHub Namespace?"
default = false
}
variable "authorized_vnet_subnet_ids" {
type = list(string)
description = "IDs of the virtual network subnets authorized to connect to the Eventhub Namespace."
default = []
}
variable "authorized_ips_or_cidr_blocks" {
type = list(string)
description = "One or more IP Addresses, or CIDR Blocks which should be able to access the Eventhub Namespace."
default = []
}
variable "disaster_recovery_config" {
type = object({
dr_enabled = bool
partner_namespace_id = string
})
description = "Specifies disaster recovery configuration. This block requires the following inputs:\n - `dr_enabled`: If Geo-Recovery needs to be enabled?\n - `partner_namespace_id` The ID of the EventHub Namespace to replicate to."
default = {
dr_enabled = false
partner_namespace_id = ""
}
}
variable "private_endpoint" {
type = list(string)
description = "Specifies the private endpoint details for EventHub Namespace. List of subnet IDs to use for the private endpoint of the EventHub Namespace."
default = []
}
variable "tags" {
type = map(string)
description = "Tags for the Azure EventHub Namespace."
default = {}
}
variable "hubs" {
description = "A list of event hubs to add to the namespace."
type = list(object({
partitions = number
message_retention = number
}))
default = []
}