tfwriter

Terraform HCL code generator.

Download as .zip Download as .tar.gz View on GitHub

aviatrix_device_tag

back

Index

Terraform

terraform {
  required_providers {
    aviatrix = ">= 2.18.2"
  }
}

top

Example Usage

module "aviatrix_device_tag" {
  source = "./modules/aviatrix/r/aviatrix_device_tag"

  # config - (required) is a type of string
  config = null
  # device_names - (required) is a type of list of string
  device_names = []
  # name - (required) is a type of string
  name = null
}

top

Variables

variable "config" {
  description = "(required) - Config to apply to devices that are attached to the tag."
  type        = string
}

variable "device_names" {
  description = "(required) - List of device names to attach to this tag."
  type        = list(string)
}

variable "name" {
  description = "(required) - Name of the tag."
  type        = string
}

top

Resource

resource "aviatrix_device_tag" "this" {
  # config - (required) is a type of string
  config = var.config
  # device_names - (required) is a type of list of string
  device_names = var.device_names
  # name - (required) is a type of string
  name = var.name
}

top

Outputs

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

output "this" {
  value = aviatrix_device_tag.this
}

top