alicloud_quotas_quota_alarm

Provides a Quotas Quota Alarm resource.

For information about Quotas Quota Alarm and how to use it, see What is Quota Alarm.

Example Usage

Basic Usage

provider "alicloud" {
  region = "cn-hangzhou"
}

variable "name" {
  default = "terraform-example"
}

resource "random_integer" "default" {
  min = 10000
  max = 99999
}

resource "alicloud_quotas_quota_alarm" "default" {
  quota_action_code = "q_desktop-count"
  quota_dimensions {
    key   = "regionId"
    value = "cn-hangzhou"
  }
  threshold_percent = 80
  product_code      = "gws"
  quota_alarm_name  = "${var.name}-${random_integer.default.result}"
  threshold_type    = "used"
}

Argument Reference

The following arguments are supported:

quota_dimensions

The quota_dimensions supports the following:

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

Quotas Quota Alarm can be imported using the id, e.g.

$ terraform import alicloud_quotas_quota_alarm.example <id>