Skip to content

Latest commit

 

History

History
126 lines (99 loc) · 2.27 KB

alicloud_slb_rules.md

File metadata and controls

126 lines (99 loc) · 2.27 KB

alicloud_slb_rules

back

Index

Terraform

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

top

Example Usage

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

  # frontend_port - (required) is a type of number
  frontend_port = null
  # ids - (optional) is a type of list of string
  ids = []
  # load_balancer_id - (required) is a type of string
  load_balancer_id = null
  # name_regex - (optional) is a type of string
  name_regex = null
  # output_file - (optional) is a type of string
  output_file = null
}

top

Variables

variable "frontend_port" {
  description = "(required)"
  type        = number
}

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

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

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

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

top

Datasource

data "alicloud_slb_rules" "this" {
  # frontend_port - (required) is a type of number
  frontend_port = var.frontend_port
  # ids - (optional) is a type of list of string
  ids = var.ids
  # load_balancer_id - (required) is a type of string
  load_balancer_id = var.load_balancer_id
  # name_regex - (optional) is a type of string
  name_regex = var.name_regex
  # output_file - (optional) is a type of string
  output_file = var.output_file
}

top

Outputs

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

output "ids" {
  description = "returns a list of string"
  value       = data.alicloud_slb_rules.this.ids
}

output "names" {
  description = "returns a list of string"
  value       = data.alicloud_slb_rules.this.names
}

output "slb_rules" {
  description = "returns a list of object"
  value       = data.alicloud_slb_rules.this.slb_rules
}

output "this" {
  value = alicloud_slb_rules.this
}

top