tfwriter

Terraform HCL code generator.

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

alicloud_privatelink_vpc_endpoint_connection

back

Index

Terraform

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

top

Example Usage

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

  # bandwidth - (optional) is a type of number
  bandwidth = null
  # dry_run - (optional) is a type of bool
  dry_run = null
  # endpoint_id - (required) is a type of string
  endpoint_id = null
  # service_id - (required) is a type of string
  service_id = null

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

top

Variables

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

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

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

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

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 "alicloud_privatelink_vpc_endpoint_connection" "this" {
  # bandwidth - (optional) is a type of number
  bandwidth = var.bandwidth
  # 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
  # service_id - (required) is a type of string
  service_id = var.service_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"]
      # update - (optional) is a type of string
      update = timeouts.value["update"]
    }
  }

}

top

Outputs

output "bandwidth" {
  description = "returns a number"
  value       = alicloud_privatelink_vpc_endpoint_connection.this.bandwidth
}

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

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

output "this" {
  value = alicloud_privatelink_vpc_endpoint_connection.this
}

top