modules/keyvalue/variables.tf (31 lines of code) (raw):
variable "configuration_store_resource_id" {
type = string
description = "The resource ID of the App Configuration store."
validation {
error_message = "Value must be a valid App Configuration store resource ID."
condition = can(regex("^/subscriptions/[^/]+/resourceGroups/[^/]+/providers/Microsoft.AppConfiguration/configurationStores/[^/]+$", var.configuration_store_resource_id))
}
}
variable "key" {
type = string
description = "The key name for the App Configuration key."
}
variable "value" {
type = string
description = "The value of the App Configuration key."
}
variable "content_type" {
type = string
default = null
description = "The content type of the App Configuration key's value, e.g. `application/json` or `text/plain`."
}
variable "label" {
type = string
default = null
description = "The label of the App Configuration key."
}
variable "tags" {
type = map(string)
default = null
description = "Tags to be applied to the App Configuration key."
}