tfwriter

Terraform HCL code generator.

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

alicloud_slb_listeners

back

Index

Terraform

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

top

Example Usage

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

  # description_regex - (optional) is a type of string
  description_regex = null
  # frontend_port - (optional) is a type of number
  frontend_port = null
  # load_balancer_id - (required) is a type of string
  load_balancer_id = null
  # output_file - (optional) is a type of string
  output_file = null
  # protocol - (optional) is a type of string
  protocol = null
}

top

Variables

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

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

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

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

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

top

Datasource

data "alicloud_slb_listeners" "this" {
  # description_regex - (optional) is a type of string
  description_regex = var.description_regex
  # frontend_port - (optional) is a type of number
  frontend_port = var.frontend_port
  # load_balancer_id - (required) is a type of string
  load_balancer_id = var.load_balancer_id
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # protocol - (optional) is a type of string
  protocol = var.protocol
}

top

Outputs

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

output "slb_listeners" {
  description = "returns a list of object"
  value       = data.alicloud_slb_listeners.this.slb_listeners
}

output "this" {
  value = alicloud_slb_listeners.this
}

top