Skip to content

Latest commit

 

History

History
109 lines (84 loc) · 1.9 KB

fortios_switchcontrollerautoconfig_custom.md

File metadata and controls

109 lines (84 loc) · 1.9 KB

fortios_switchcontrollerautoconfig_custom

back

Index

Terraform

terraform {
  required_providers {
    fortios = ">= 1.11.0"
  }
}

top

Example Usage

module "fortios_switchcontrollerautoconfig_custom" {
  source = "./modules/fortios/r/fortios_switchcontrollerautoconfig_custom"

  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = null
  # name - (required) is a type of string
  name = null

  switch_binding = [{
    policy    = null
    switch_id = null
  }]
}

top

Variables

variable "dynamic_sort_subtable" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "name" {
  description = "(required)"
  type        = string
}

variable "switch_binding" {
  description = "nested block: NestingList, min items: 0, max items: 0"
  type = set(object(
    {
      policy    = string
      switch_id = string
    }
  ))
  default = []
}

top

Resource

resource "fortios_switchcontrollerautoconfig_custom" "this" {
  # dynamic_sort_subtable - (optional) is a type of string
  dynamic_sort_subtable = var.dynamic_sort_subtable
  # name - (required) is a type of string
  name = var.name

  dynamic "switch_binding" {
    for_each = var.switch_binding
    content {
      # policy - (optional) is a type of string
      policy = switch_binding.value["policy"]
      # switch_id - (optional) is a type of string
      switch_id = switch_binding.value["switch_id"]
    }
  }

}

top

Outputs

output "id" {
  description = "returns a string"
  value       = fortios_switchcontrollerautoconfig_custom.this.id
}

output "this" {
  value = fortios_switchcontrollerautoconfig_custom.this
}

top