back
terraform {
required_providers {
alicloud = ">= 1.120.0"
}
}
top
module "alicloud_cen_instance" {
source = "./modules/alicloud/r/alicloud_cen_instance"
# cen_instance_name - (optional) is a type of string
cen_instance_name = null
# description - (optional) is a type of string
description = null
# name - (optional) is a type of string
name = null
# protection_level - (optional) is a type of string
protection_level = null
# tags - (optional) is a type of map of string
tags = {}
timeouts = [{
create = null
delete = null
}]
}
top
variable "cen_instance_name" {
description = "(optional)"
type = string
default = null
}
variable "description" {
description = "(optional)"
type = string
default = null
}
variable "name" {
description = "(optional)"
type = string
default = null
}
variable "protection_level" {
description = "(optional)"
type = string
default = null
}
variable "tags" {
description = "(optional)"
type = map(string)
default = null
}
variable "timeouts" {
description = "nested block: NestingSingle, min items: 0, max items: 0"
type = set(object(
{
create = string
delete = string
}
))
default = []
}
top
resource "alicloud_cen_instance" "this" {
# cen_instance_name - (optional) is a type of string
cen_instance_name = var.cen_instance_name
# description - (optional) is a type of string
description = var.description
# name - (optional) is a type of string
name = var.name
# protection_level - (optional) is a type of string
protection_level = var.protection_level
# tags - (optional) is a type of map of string
tags = var.tags
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
output "cen_instance_name" {
description = "returns a string"
value = alicloud_cen_instance.this.cen_instance_name
}
output "id" {
description = "returns a string"
value = alicloud_cen_instance.this.id
}
output "name" {
description = "returns a string"
value = alicloud_cen_instance.this.name
}
output "status" {
description = "returns a string"
value = alicloud_cen_instance.this.status
}
output "this" {
value = alicloud_cen_instance.this
}
top