tfwriter

Terraform HCL code generator.

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

alicloud_cen_private_zone

back

Index

Terraform

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

top

Example Usage

module "alicloud_cen_private_zone" {
  source = "./modules/alicloud/r/alicloud_cen_private_zone"

  # access_region_id - (required) is a type of string
  access_region_id = null
  # cen_id - (required) is a type of string
  cen_id = null
  # host_region_id - (required) is a type of string
  host_region_id = null
  # host_vpc_id - (required) is a type of string
  host_vpc_id = null

  timeouts = [{
    create = null
  }]
}

top

Variables

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

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

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

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

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

top

Resource

resource "alicloud_cen_private_zone" "this" {
  # access_region_id - (required) is a type of string
  access_region_id = var.access_region_id
  # cen_id - (required) is a type of string
  cen_id = var.cen_id
  # host_region_id - (required) is a type of string
  host_region_id = var.host_region_id
  # host_vpc_id - (required) is a type of string
  host_vpc_id = var.host_vpc_id

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

}

top

Outputs

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

output "status" {
  description = "returns a string"
  value       = alicloud_cen_private_zone.this.status
}

output "this" {
  value = alicloud_cen_private_zone.this
}

top