modules/addrecords/variables.tf (88 lines of code) (raw):

variable "resource_group_name" { type = string description = "The resource group of the private DNS zone." } variable "zone_name" { type = string description = "The name of the private DNS zone." } variable "a_records" { type = map(object({ name = string ttl = number records = list(string) tags = optional(map(string), null) })) default = {} description = "A map of objects where each object contains information to create a A record." } variable "aaaa_records" { type = map(object({ name = string ttl = number records = list(string) tags = optional(map(string), null) })) default = {} description = "A map of objects where each object contains information to create a AAAA record." } variable "cname_records" { type = map(object({ name = string ttl = number record = string tags = optional(map(string), null) })) default = {} description = "A map of objects where each object contains information to create a CNAME record." } variable "mx_records" { type = map(object({ name = optional(string, "@") ttl = number records = map(object({ preference = number exchange = string })) tags = optional(map(string), null) })) default = {} description = "A map of objects where each object contains information to create a MX record." } variable "ptr_records" { type = map(object({ name = string ttl = number records = list(string) tags = optional(map(string), null) })) default = {} description = "A map of objects where each object contains information to create a PTR record." } variable "srv_records" { type = map(object({ name = string ttl = number records = map(object({ priority = number weight = number port = number target = string })) tags = optional(map(string), null) })) default = {} description = "A map of objects where each object contains information to create a SRV record." } variable "txt_records" { type = map(object({ name = string ttl = number records = map(object({ value = string })) tags = optional(map(string), null) })) default = {} description = "A map of objects where each object contains information to create a TXT record." }