back
terraform {
required_providers {
alicloud = ">= 1.120.0"
}
}
top
module "alicloud_ess_alarms" {
source = "./modules/alicloud/d/alicloud_ess_alarms"
# ids - (optional) is a type of list of string
ids = []
# metric_type - (optional) is a type of string
metric_type = null
# name_regex - (optional) is a type of string
name_regex = null
# output_file - (optional) is a type of string
output_file = null
# scaling_group_id - (optional) is a type of string
scaling_group_id = null
}
top
variable "ids" {
description = "(optional)"
type = list(string)
default = null
}
variable "metric_type" {
description = "(optional)"
type = string
default = null
}
variable "name_regex" {
description = "(optional)"
type = string
default = null
}
variable "output_file" {
description = "(optional)"
type = string
default = null
}
variable "scaling_group_id" {
description = "(optional)"
type = string
default = null
}
top
data "alicloud_ess_alarms" "this" {
# ids - (optional) is a type of list of string
ids = var.ids
# metric_type - (optional) is a type of string
metric_type = var.metric_type
# 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
# scaling_group_id - (optional) is a type of string
scaling_group_id = var.scaling_group_id
}
top
output "alarms" {
description = "returns a list of object"
value = data.alicloud_ess_alarms.this.alarms
}
output "id" {
description = "returns a string"
value = data.alicloud_ess_alarms.this.id
}
output "ids" {
description = "returns a list of string"
value = data.alicloud_ess_alarms.this.ids
}
output "names" {
description = "returns a list of string"
value = data.alicloud_ess_alarms.this.names
}
output "this" {
value = alicloud_ess_alarms.this
}
top