tfwriter

Terraform HCL code generator.

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

alicloud_dns_domain_records

back

Index

Terraform

terraform {
  required_providers {
    alicloud = ">= 1.120.0"
  }
}

top

Example Usage

module "alicloud_dns_domain_records" {
  source = "./modules/alicloud/d/alicloud_dns_domain_records"

  # domain_name - (required) is a type of string
  domain_name = null
  # host_record_regex - (optional) is a type of string
  host_record_regex = null
  # ids - (optional) is a type of list of string
  ids = []
  # is_locked - (optional) is a type of bool
  is_locked = null
  # line - (optional) is a type of string
  line = null
  # output_file - (optional) is a type of string
  output_file = null
  # status - (optional) is a type of string
  status = null
  # type - (optional) is a type of string
  type = null
  # value_regex - (optional) is a type of string
  value_regex = null
}

top

Variables

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

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

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

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

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

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

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

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

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

top

Datasource

data "alicloud_dns_domain_records" "this" {
  # domain_name - (required) is a type of string
  domain_name = var.domain_name
  # host_record_regex - (optional) is a type of string
  host_record_regex = var.host_record_regex
  # ids - (optional) is a type of list of string
  ids = var.ids
  # is_locked - (optional) is a type of bool
  is_locked = var.is_locked
  # line - (optional) is a type of string
  line = var.line
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # status - (optional) is a type of string
  status = var.status
  # type - (optional) is a type of string
  type = var.type
  # value_regex - (optional) is a type of string
  value_regex = var.value_regex
}

top

Outputs

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

output "ids" {
  description = "returns a list of string"
  value       = data.alicloud_dns_domain_records.this.ids
}

output "records" {
  description = "returns a list of object"
  value       = data.alicloud_dns_domain_records.this.records
}

output "urls" {
  description = "returns a list of string"
  value       = data.alicloud_dns_domain_records.this.urls
}

output "this" {
  value = alicloud_dns_domain_records.this
}

top