Skip to content

Latest commit

 

History

History
173 lines (140 loc) · 2.99 KB

File metadata and controls

173 lines (140 loc) · 2.99 KB

ecl_dns_zone_v2

back

Index

Terraform

terraform {
  required_providers {
    ecl = ">= 2.0.0"
  }
}

top

Example Usage

module "ecl_dns_zone_v2" {
  source = "./modules/ecl/r/ecl_dns_zone_v2"

  # description - (optional) is a type of string
  description = null
  # email - (optional) is a type of string
  email = null
  # masters - (optional) is a type of set of string
  masters = []
  # name - (required) is a type of string
  name = null
  # ttl - (optional) is a type of number
  ttl = null
  # type - (optional) is a type of string
  type = null

  timeouts = [{
    create = null
    delete = null
    update = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
      update = string
    }
  ))
  default = []
}

top

Resource

resource "ecl_dns_zone_v2" "this" {
  # description - (optional) is a type of string
  description = var.description
  # email - (optional) is a type of string
  email = var.email
  # masters - (optional) is a type of set of string
  masters = var.masters
  # name - (required) is a type of string
  name = var.name
  # ttl - (optional) is a type of number
  ttl = var.ttl
  # type - (optional) is a type of string
  type = var.type

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

output "email" {
  description = "returns a string"
  value       = ecl_dns_zone_v2.this.email
}

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

output "masters" {
  description = "returns a set of string"
  value       = ecl_dns_zone_v2.this.masters
}

output "ttl" {
  description = "returns a number"
  value       = ecl_dns_zone_v2.this.ttl
}

output "type" {
  description = "returns a string"
  value       = ecl_dns_zone_v2.this.type
}

output "this" {
  value = ecl_dns_zone_v2.this
}

top