Provides a Quotas Template Quota resource.
For information about Quotas Template Quota and how to use it, see What is Template Quota.
Basic Usage
variable "name" {
default = "terraform-example"
}
resource "alicloud_quotas_template_quota" "default" {
quota_action_code = "q_desktop-count"
product_code = "gws"
notice_type = 3
dimensions {
key = "regionId"
value = "cn-hangzhou"
}
desire_value = 1001
env_language = "zh"
quota_category = "CommonQuota"
}
The following arguments are supported:
desire_value
- (Required) Quota application value.dimensions
- (Optional) The Quota Dimensions. See dimensions
below.effective_time
- (Optional) The UTC time when the quota takes effect.env_language
- (Optional, Computed) The language of the quota alert notification. Value:
expire_time
- (Optional) The UTC time when the quota expires.notice_type
- (Optional, Computed) Whether to notify the result of quota promotion application. Value:
product_code
- (Required, ForceNew) The abbreviation of the cloud service name.quota_action_code
- (Required, ForceNew) The quota ID.quota_category
- (Optional) Type of quota. Value:
dimensions
The Dimensions supports the following:
key
- (Optional) The Key of quota_dimensions.value
- (Optional) The Value of quota_dimensions.The following attributes are exported:
id
- The ID of the resource supplied above.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 5 mins) Used when create the Template Quota.delete
- (Defaults to 5 mins) Used when delete the Template Quota.update
- (Defaults to 5 mins) Used when update the Template Quota.Quotas Template Quota can be imported using the id, e.g.
$ terraform import alicloud_quotas_template_quota.example <id>