Skip to content

Latest commit

 

History

History
122 lines (96 loc) · 2.16 KB

alicloud_cen_private_zones.md

File metadata and controls

122 lines (96 loc) · 2.16 KB

alicloud_cen_private_zones

back

Index

Terraform

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

top

Example Usage

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

  # cen_id - (required) is a type of string
  cen_id = null
  # host_region_id - (optional) is a type of string
  host_region_id = null
  # ids - (optional) is a type of list of string
  ids = []
  # output_file - (optional) is a type of string
  output_file = null
  # status - (optional) is a type of string
  status = null
}

top

Variables

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

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

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

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

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

top

Datasource

data "alicloud_cen_private_zones" "this" {
  # cen_id - (required) is a type of string
  cen_id = var.cen_id
  # host_region_id - (optional) is a type of string
  host_region_id = var.host_region_id
  # ids - (optional) is a type of list of string
  ids = var.ids
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # status - (optional) is a type of string
  status = var.status
}

top

Outputs

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

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

output "zones" {
  description = "returns a list of object"
  value       = data.alicloud_cen_private_zones.this.zones
}

output "this" {
  value = alicloud_cen_private_zones.this
}

top