Skip to content

Latest commit

 

History

History
201 lines (165 loc) · 4.12 KB

constellix_cname_record_pool.md

File metadata and controls

201 lines (165 loc) · 4.12 KB

constellix_cname_record_pool

back

Index

Terraform

terraform {
  required_providers {
    constellix = ">= 0.3.7"
  }
}

top

Example Usage

module "constellix_cname_record_pool" {
  source = "./modules/constellix/d/constellix_cname_record_pool"

  # disableflag1 - (optional) is a type of bool
  disableflag1 = null
  # failed_flag - (optional) is a type of bool
  failed_flag = null
  # min_available_failover - (optional) is a type of number
  min_available_failover = null
  # name - (required) is a type of string
  name = null
  # note - (optional) is a type of string
  note = null
  # num_return - (optional) is a type of number
  num_return = null
  # version - (optional) is a type of number
  version = null

  values = [{
    check_id     = null
    disable_flag = null
    policy       = null
    value        = null
    weight       = null
  }]
}

top

Variables

variable "disableflag1" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "failed_flag" {
  description = "(optional)"
  type        = bool
  default     = null
}

variable "min_available_failover" {
  description = "(optional)"
  type        = number
  default     = null
}

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

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

variable "num_return" {
  description = "(optional)"
  type        = number
  default     = null
}

variable "version" {
  description = "(optional)"
  type        = number
  default     = null
}

variable "values" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      check_id     = number
      disable_flag = bool
      policy       = string
      value        = string
      weight       = number
    }
  ))
  default = []
}

top

Datasource

data "constellix_cname_record_pool" "this" {
  # disableflag1 - (optional) is a type of bool
  disableflag1 = var.disableflag1
  # failed_flag - (optional) is a type of bool
  failed_flag = var.failed_flag
  # min_available_failover - (optional) is a type of number
  min_available_failover = var.min_available_failover
  # name - (required) is a type of string
  name = var.name
  # note - (optional) is a type of string
  note = var.note
  # num_return - (optional) is a type of number
  num_return = var.num_return
  # version - (optional) is a type of number
  version = var.version

  dynamic "values" {
    for_each = var.values
    content {
      # check_id - (optional) is a type of number
      check_id = values.value["check_id"]
      # disable_flag - (optional) is a type of bool
      disable_flag = values.value["disable_flag"]
      # policy - (required) is a type of string
      policy = values.value["policy"]
      # value - (required) is a type of string
      value = values.value["value"]
      # weight - (required) is a type of number
      weight = values.value["weight"]
    }
  }

}

top

Outputs

output "disableflag1" {
  description = "returns a bool"
  value       = data.constellix_cname_record_pool.this.disableflag1
}

output "failed_flag" {
  description = "returns a bool"
  value       = data.constellix_cname_record_pool.this.failed_flag
}

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

output "min_available_failover" {
  description = "returns a number"
  value       = data.constellix_cname_record_pool.this.min_available_failover
}

output "note" {
  description = "returns a string"
  value       = data.constellix_cname_record_pool.this.note
}

output "num_return" {
  description = "returns a number"
  value       = data.constellix_cname_record_pool.this.num_return
}

output "version" {
  description = "returns a number"
  value       = data.constellix_cname_record_pool.this.version
}

output "this" {
  value = constellix_cname_record_pool.this
}

top