Skip to content

Latest commit

 

History

History
118 lines (92 loc) · 2.02 KB

alicloud_nat_gateways.md

File metadata and controls

118 lines (92 loc) · 2.02 KB

alicloud_nat_gateways

back

Index

Terraform

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

top

Example Usage

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

  # ids - (optional) is a type of list of string
  ids = []
  # name_regex - (optional) is a type of string
  name_regex = null
  # output_file - (optional) is a type of string
  output_file = null
  # vpc_id - (optional) is a type of string
  vpc_id = null
}

top

Variables

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

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

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

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

top

Datasource

data "alicloud_nat_gateways" "this" {
  # ids - (optional) is a type of list of string
  ids = var.ids
  # 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
  # vpc_id - (optional) is a type of string
  vpc_id = var.vpc_id
}

top

Outputs

output "gateways" {
  description = "returns a list of object"
  value       = data.alicloud_nat_gateways.this.gateways
}

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

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

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

output "this" {
  value = alicloud_nat_gateways.this
}

top