tfwriter

Terraform HCL code generator.

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

alicloud_privatelink_vpc_endpoint_zone

back

Index

Terraform

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

top

Example Usage

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

  # dry_run - (optional) is a type of bool
  dry_run = null
  # endpoint_id - (required) is a type of string
  endpoint_id = null
  # vswitch_id - (required) is a type of string
  vswitch_id = null
  # zone_id - (optional) is a type of string
  zone_id = null

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

top

Variables

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

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

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

variable "zone_id" {
  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
    }
  ))
  default = []
}

top

Resource

resource "alicloud_privatelink_vpc_endpoint_zone" "this" {
  # dry_run - (optional) is a type of bool
  dry_run = var.dry_run
  # endpoint_id - (required) is a type of string
  endpoint_id = var.endpoint_id
  # vswitch_id - (required) is a type of string
  vswitch_id = var.vswitch_id
  # zone_id - (optional) is a type of string
  zone_id = var.zone_id

  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"]
    }
  }

}

top

Outputs

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

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

output "zone_id" {
  description = "returns a string"
  value       = alicloud_privatelink_vpc_endpoint_zone.this.zone_id
}

output "this" {
  value = alicloud_privatelink_vpc_endpoint_zone.this
}

top