tfwriter

Terraform HCL code generator.

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

alicloud_cms_alarm_contact_group

back

Index

Terraform

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

top

Example Usage

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

  # alarm_contact_group_name - (required) is a type of string
  alarm_contact_group_name = null
  # contacts - (optional) is a type of set of string
  contacts = []
  # describe - (optional) is a type of string
  describe = null
  # enable_subscribed - (optional) is a type of bool
  enable_subscribed = null
}

top

Variables

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

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

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

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

top

Resource

resource "alicloud_cms_alarm_contact_group" "this" {
  # alarm_contact_group_name - (required) is a type of string
  alarm_contact_group_name = var.alarm_contact_group_name
  # contacts - (optional) is a type of set of string
  contacts = var.contacts
  # describe - (optional) is a type of string
  describe = var.describe
  # enable_subscribed - (optional) is a type of bool
  enable_subscribed = var.enable_subscribed
}

top

Outputs

output "enable_subscribed" {
  description = "returns a bool"
  value       = alicloud_cms_alarm_contact_group.this.enable_subscribed
}

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

output "this" {
  value = alicloud_cms_alarm_contact_group.this
}

top