AlarmContactArgs

data class AlarmContactArgs(val alarmContactName: Output<String>? = null, val channelsAliim: Output<String>? = null, val channelsDingWebHook: Output<String>? = null, val channelsMail: Output<String>? = null, val channelsSms: Output<String>? = null, val describe: Output<String>? = null, val lang: Output<String>? = null) : ConvertibleToJava<AlarmContactArgs>

Creates or modifies an alarm contact. For information about alarm contact and how to use it, see What is alarm contact.

NOTE: Available since v1.99.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.cms.AlarmContact;
import com.pulumi.alicloud.cms.AlarmContactArgs;
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) {
var example = new AlarmContact("example", AlarmContactArgs.builder()
.alarmContactName("terraform-example")
.channelsMail("terraform@test.com")
.describe("For example")
.build());
}
}

Import

Alarm contact can be imported using the id, e.g.

$ pulumi import alicloud:cms/alarmContact:AlarmContact example abc12345

Constructors

Link copied to clipboard
fun AlarmContactArgs(alarmContactName: Output<String>? = null, channelsAliim: Output<String>? = null, channelsDingWebHook: Output<String>? = null, channelsMail: Output<String>? = null, channelsSms: Output<String>? = null, describe: Output<String>? = null, lang: Output<String>? = null)

Functions

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

Properties

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

The name of the alarm contact. The length should between 2 and 40 characters.

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

The TradeManager ID of the alarm contact.

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

The webhook URL of the DingTalk chatbot.

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

The email address of the alarm contact. After you add or modify an email address, the recipient receives an email that contains an activation link. The system adds the recipient to the list of alarm contacts only after the recipient activates the email address.

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

The phone number of the alarm contact. After you add or modify an email address, the recipient receives an email that contains an activation link. The system adds the recipient to the list of alarm contacts only after the recipient activates the email address.

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

The description of the alarm contact.

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

The language type of the alarm. Valid values: en, zh-cn.