Skip to content

Latest commit

 

History

History
150 lines (120 loc) · 2.73 KB

alicloud_cen_route_service.md

File metadata and controls

150 lines (120 loc) · 2.73 KB

alicloud_cen_route_service

back

Index

Terraform

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

top

Example Usage

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

  # access_region_id - (required) is a type of string
  access_region_id = null
  # cen_id - (required) is a type of string
  cen_id = null
  # description - (optional) is a type of string
  description = null
  # host - (required) is a type of string
  host = null
  # host_region_id - (required) is a type of string
  host_region_id = null
  # host_vpc_id - (required) is a type of string
  host_vpc_id = null

  timeouts = [{
    create = null
    delete = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
      delete = string
    }
  ))
  default = []
}

top

Resource

resource "alicloud_cen_route_service" "this" {
  # access_region_id - (required) is a type of string
  access_region_id = var.access_region_id
  # cen_id - (required) is a type of string
  cen_id = var.cen_id
  # description - (optional) is a type of string
  description = var.description
  # host - (required) is a type of string
  host = var.host
  # host_region_id - (required) is a type of string
  host_region_id = var.host_region_id
  # host_vpc_id - (required) is a type of string
  host_vpc_id = var.host_vpc_id

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
      # delete - (optional) is a type of string
      delete = timeouts.value["delete"]
    }
  }

}

top

Outputs

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

output "status" {
  description = "returns a string"
  value       = alicloud_cen_route_service.this.status
}

output "this" {
  value = alicloud_cen_route_service.this
}

top