Skip to content

Latest commit

 

History

History
139 lines (111 loc) · 2.51 KB

mso_schema_template_anp_epg_selector.md

File metadata and controls

139 lines (111 loc) · 2.51 KB

mso_schema_template_anp_epg_selector

back

Index

Terraform

terraform {
  required_providers {
    mso = ">= 0.1.5"
  }
}

top

Example Usage

module "mso_schema_template_anp_epg_selector" {
  source = "./modules/mso/r/mso_schema_template_anp_epg_selector"

  # anp_name - (required) is a type of string
  anp_name = null
  # epg_name - (required) is a type of string
  epg_name = null
  # name - (required) is a type of string
  name = null
  # schema_id - (required) is a type of string
  schema_id = null
  # template_name - (required) is a type of string
  template_name = null

  expressions = [{
    key      = null
    operator = null
    value    = null
  }]
}

top

Variables

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

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

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

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

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

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

top

Resource

resource "mso_schema_template_anp_epg_selector" "this" {
  # anp_name - (required) is a type of string
  anp_name = var.anp_name
  # epg_name - (required) is a type of string
  epg_name = var.epg_name
  # name - (required) is a type of string
  name = var.name
  # schema_id - (required) is a type of string
  schema_id = var.schema_id
  # template_name - (required) is a type of string
  template_name = var.template_name

  dynamic "expressions" {
    for_each = var.expressions
    content {
      # key - (required) is a type of string
      key = expressions.value["key"]
      # operator - (required) is a type of string
      operator = expressions.value["operator"]
      # value - (optional) is a type of string
      value = expressions.value["value"]
    }
  }

}

top

Outputs

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

output "this" {
  value = mso_schema_template_anp_epg_selector.this
}

top