ALIYUN::ARMS::AlertContact is used to create an alert contact.
Syntax
{
"Type": "ALIYUN::ARMS::AlertContact",
"Properties": {
"DingRobotWebhookUrl": String,
"PhoneNum": String,
"RegionId": String,
"SystemNoc": Boolean,
"ContactName": String,
"Email": String
}
}
Properties
Property | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
DingRobotWebhookUrl | String | No | Yes | The webhook URL of DingTalk chatbot. | Enter alert in the custom keyword field of DingTalk chatbot security settings. |
String | No | Yes | The email address of the alert contact. | None. | |
PhoneNum | String | No | Yes | The mobile phone number of the alert contact. | You must specify at least one of the DingRobotWebhookUrl, Email, and PhoneNum parameters. |
RegionId | String | No | No | The region ID of the alert contact. The default value of this parameter is the region ID of the stack. | Valid values:
|
SystemNoc | Boolean | No | Yes | Specifies whether to receive system notifications. | None. |
ContactName | String | Yes | Yes | The name of the alert contact. | None. |
Response parameters
Fn::GetAtt
ContactId: the ID of the alert contact.
Examples
JSON
format{ "ROSTemplateFormatVersion": "2015-09-01", "Resources": { "AlertContact": { "Type": "ALIYUN::ARMS::AlertContact", "Properties": { "ContactName": "DemoContact", "Email": "DemoContact@163.com", "RegionId": { "Ref": "ALIYUN::Region" } } } }, "Outputs": { "ContactId": { "Description": "The ID of the alert contact that you created.", "Value": { "Fn::GetAtt": [ "AlertContact", "ContactId" ] } } } }