Skip to content

Latest commit

 

History

History
121 lines (94 loc) · 2.31 KB

alicloud_polardb_endpoint_address.md

File metadata and controls

121 lines (94 loc) · 2.31 KB

alicloud_polardb_endpoint_address

back

Index

Terraform

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

top

Example Usage

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

  # connection_prefix - (optional) is a type of string
  connection_prefix = null
  # db_cluster_id - (required) is a type of string
  db_cluster_id = null
  # db_endpoint_id - (required) is a type of string
  db_endpoint_id = null
  # net_type - (optional) is a type of string
  net_type = null
}

top

Variables

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

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

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

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

top

Resource

resource "alicloud_polardb_endpoint_address" "this" {
  # connection_prefix - (optional) is a type of string
  connection_prefix = var.connection_prefix
  # db_cluster_id - (required) is a type of string
  db_cluster_id = var.db_cluster_id
  # db_endpoint_id - (required) is a type of string
  db_endpoint_id = var.db_endpoint_id
  # net_type - (optional) is a type of string
  net_type = var.net_type
}

top

Outputs

output "connection_prefix" {
  description = "returns a string"
  value       = alicloud_polardb_endpoint_address.this.connection_prefix
}

output "connection_string" {
  description = "returns a string"
  value       = alicloud_polardb_endpoint_address.this.connection_string
}

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

output "ip_address" {
  description = "returns a string"
  value       = alicloud_polardb_endpoint_address.this.ip_address
}

output "port" {
  description = "returns a string"
  value       = alicloud_polardb_endpoint_address.this.port
}

output "this" {
  value = alicloud_polardb_endpoint_address.this
}

top