back
terraform {
required_providers {
fortios = ">= 1.11.0"
}
}
top
module "fortios_ips_decoder" {
source = "./modules/fortios/r/fortios_ips_decoder"
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = null
# name - (optional) is a type of string
name = null
parameter = [{
name = null
value = null
}]
}
top
variable "dynamic_sort_subtable" {
description = "(optional)"
type = string
default = null
}
variable "name" {
description = "(optional)"
type = string
default = null
}
variable "parameter" {
description = "nested block: NestingList, min items: 0, max items: 0"
type = set(object(
{
name = string
value = string
}
))
default = []
}
top
resource "fortios_ips_decoder" "this" {
# dynamic_sort_subtable - (optional) is a type of string
dynamic_sort_subtable = var.dynamic_sort_subtable
# name - (optional) is a type of string
name = var.name
dynamic "parameter" {
for_each = var.parameter
content {
# name - (optional) is a type of string
name = parameter.value["name"]
# value - (optional) is a type of string
value = parameter.value["value"]
}
}
}
top
output "id" {
description = "returns a string"
value = fortios_ips_decoder.this.id
}
output "name" {
description = "returns a string"
value = fortios_ips_decoder.this.name
}
output "this" {
value = fortios_ips_decoder.this
}
top