Skip to content

Latest commit

 

History

History
97 lines (74 loc) · 1.64 KB

alicloud_ess_notifications.md

File metadata and controls

97 lines (74 loc) · 1.64 KB

alicloud_ess_notifications

back

Index

Terraform

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

top

Example Usage

module "alicloud_ess_notifications" {
  source = "./modules/alicloud/d/alicloud_ess_notifications"

  # ids - (optional) is a type of list of string
  ids = []
  # output_file - (optional) is a type of string
  output_file = null
  # scaling_group_id - (required) is a type of string
  scaling_group_id = null
}

top

Variables

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

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

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

top

Datasource

data "alicloud_ess_notifications" "this" {
  # ids - (optional) is a type of list of string
  ids = var.ids
  # output_file - (optional) is a type of string
  output_file = var.output_file
  # scaling_group_id - (required) is a type of string
  scaling_group_id = var.scaling_group_id
}

top

Outputs

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

output "notifications" {
  description = "returns a list of object"
  value       = data.alicloud_ess_notifications.this.notifications
}

output "this" {
  value = alicloud_ess_notifications.this
}

top