Skip to content

Latest commit

 

History

History
121 lines (94 loc) · 2.07 KB

fortios_firewall_internetservicecustomgroup.md

File metadata and controls

121 lines (94 loc) · 2.07 KB

fortios_firewall_internetservicecustomgroup

back

Index

Terraform

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

top

Example Usage

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

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

  member = [{
    name = null
  }]
}

top

Variables

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

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

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

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

top

Resource

resource "fortios_firewall_internetservicecustomgroup" "this" {
  # comment - (optional) is a type of string
  comment = var.comment
  # 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 "member" {
    for_each = var.member
    content {
      # name - (optional) is a type of string
      name = member.value["name"]
    }
  }

}

top

Outputs

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

output "name" {
  description = "returns a string"
  value       = fortios_firewall_internetservicecustomgroup.this.name
}

output "this" {
  value = fortios_firewall_internetservicecustomgroup.this
}

top