AlarmContact

class AlarmContact : KotlinCustomResource

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

Properties

Link copied to clipboard

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

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

The TradeManager ID of the alarm contact.

Link copied to clipboard

The webhook URL of the DingTalk chatbot.

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

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>?

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>

The description of the alarm contact.

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

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

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val urn: Output<String>