Skip to content

Latest commit

 

History

History
162 lines (130 loc) · 2.96 KB

alicloud_cms_site_monitor.md

File metadata and controls

162 lines (130 loc) · 2.96 KB

alicloud_cms_site_monitor

back

Index

Terraform

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

top

Example Usage

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

  # address - (required) is a type of string
  address = null
  # alert_ids - (optional) is a type of list of string
  alert_ids = []
  # interval - (optional) is a type of number
  interval = null
  # options_json - (optional) is a type of string
  options_json = null
  # task_name - (required) is a type of string
  task_name = null
  # task_type - (required) is a type of string
  task_type = null

  isp_cities = [{
    city = null
    isp  = null
  }]
}

top

Variables

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

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

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

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

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

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

variable "isp_cities" {
  description = "nested block: NestingSet, min items: 0, max items: 0"
  type = set(object(
    {
      city = string
      isp  = string
    }
  ))
  default = []
}

top

Resource

resource "alicloud_cms_site_monitor" "this" {
  # address - (required) is a type of string
  address = var.address
  # alert_ids - (optional) is a type of list of string
  alert_ids = var.alert_ids
  # interval - (optional) is a type of number
  interval = var.interval
  # options_json - (optional) is a type of string
  options_json = var.options_json
  # task_name - (required) is a type of string
  task_name = var.task_name
  # task_type - (required) is a type of string
  task_type = var.task_type

  dynamic "isp_cities" {
    for_each = var.isp_cities
    content {
      # city - (required) is a type of string
      city = isp_cities.value["city"]
      # isp - (required) is a type of string
      isp = isp_cities.value["isp"]
    }
  }

}

top

Outputs

output "create_time" {
  description = "returns a string"
  value       = alicloud_cms_site_monitor.this.create_time
}

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

output "task_state" {
  description = "returns a string"
  value       = alicloud_cms_site_monitor.this.task_state
}

output "update_time" {
  description = "returns a string"
  value       = alicloud_cms_site_monitor.this.update_time
}

output "this" {
  value = alicloud_cms_site_monitor.this
}

top