tfwriter

Terraform HCL code generator.

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

alicloud_cen_route_maps

back

Index

Terraform

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

top

Example Usage

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

  # cen_id - (required) is a type of string
  cen_id = null
  # cen_region_id - (optional) is a type of string
  cen_region_id = null
  # description_regex - (optional) is a type of string
  description_regex = null
  # ids - (optional) is a type of list of string
  ids = []
  # output_file - (optional) is a type of string
  output_file = null
  # status - (optional) is a type of string
  status = null
  # transmit_direction - (optional) is a type of string
  transmit_direction = null
}

top

Variables

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

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

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

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

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

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

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

top

Datasource

data "alicloud_cen_route_maps" "this" {
  # cen_id - (required) is a type of string
  cen_id = var.cen_id
  # cen_region_id - (optional) is a type of string
  cen_region_id = var.cen_region_id
  # description_regex - (optional) is a type of string
  description_regex = var.description_regex
  # ids - (optional) is a type of list of string
  ids = var.ids
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # status - (optional) is a type of string
  status = var.status
  # transmit_direction - (optional) is a type of string
  transmit_direction = var.transmit_direction
}

top

Outputs

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

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

output "maps" {
  description = "returns a list of object"
  value       = data.alicloud_cen_route_maps.this.maps
}

output "this" {
  value = alicloud_cen_route_maps.this
}

top