QuotaAlarmArgs

data class QuotaAlarmArgs(val productCode: Output<String>? = null, val quotaActionCode: Output<String>? = null, val quotaAlarmName: Output<String>? = null, val quotaDimensions: Output<List<QuotaAlarmQuotaDimensionArgs>>? = null, val threshold: Output<Double>? = null, val thresholdPercent: Output<Double>? = null, val thresholdType: Output<String>? = null, val webHook: Output<String>? = null) : ConvertibleToJava<QuotaAlarmArgs>

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

NOTE: Available since v1.116.0.

Example Usage

Basic Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.quotas.QuotaAlarm;
import com.pulumi.alicloud.quotas.QuotaAlarmArgs;
import com.pulumi.alicloud.quotas.inputs.QuotaAlarmQuotaDimensionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var config = ctx.config();
final var name = config.get("name").orElse("terraform-example");
var default_ = new QuotaAlarm("default", QuotaAlarmArgs.builder()
.quotaActionCode("q_desktop-count")
.quotaDimensions(QuotaAlarmQuotaDimensionArgs.builder()
.key("regionId")
.value("cn-hangzhou")
.build())
.thresholdPercent(80)
.productCode("gws")
.quotaAlarmName(name)
.thresholdType("used")
.build());
}
}

Import

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

$ pulumi import alicloud:quotas/quotaAlarm:QuotaAlarm example <id>

Constructors

Link copied to clipboard
fun QuotaAlarmArgs(productCode: Output<String>? = null, quotaActionCode: Output<String>? = null, quotaAlarmName: Output<String>? = null, quotaDimensions: Output<List<QuotaAlarmQuotaDimensionArgs>>? = null, threshold: Output<Double>? = null, thresholdPercent: Output<Double>? = null, thresholdType: Output<String>? = null, webHook: Output<String>? = null)

Functions

Link copied to clipboard
open override fun toJava(): QuotaAlarmArgs

Properties

Link copied to clipboard
val productCode: Output<String>? = null

The Product Code.

Link copied to clipboard
val quotaActionCode: Output<String>? = null

The Quota Action Code.

Link copied to clipboard
val quotaAlarmName: Output<String>? = null

The name of Quota Alarm.

Link copied to clipboard

The Quota Dimensions. See quota_dimensions below.

Link copied to clipboard
val threshold: Output<Double>? = null

The threshold of Quota Alarm.

Link copied to clipboard
val thresholdPercent: Output<Double>? = null

The threshold percent of Quota Alarm.

Link copied to clipboard
val thresholdType: Output<String>? = null

Quota alarm type. Value:

Link copied to clipboard
val webHook: Output<String>? = null

The WebHook of Quota Alarm.