ALIYUN::CMS::Contact is used to create an alarm Contact.
Syntax
{
"Type": "ALIYUN::CMS::Contact",
"Properties": {
"Describe": String,
"ContactName": String,
"Channels": Map
}
}
Properties
Parameter | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Describe | String | Yes | Yes | Description details | N/A |
ContactName | String | Yes | No | The name of the alert contact that you want to create. | The name must be 2 to 40 characters in length and can contain Chinese character, letters, numbers, periods (.), and periods (.). It must start with a letter. and underscores (_). |
Channels | Map | Yes | Yes | The contact information of the sub-account user. | Add at least one of the following DingTalk: mobile number, Email, contact information chatbot, and TradeManager. |
Channels syntax
"Channels": {
"Mail": String,
"AliIM": String,
"DingWebHook": String,
"SMS": String
}
Channels properties
Parameter | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
String | No | Yes | Email address | The system will receive an activation link for the added or modified Email. After the Email is activated, the corresponding Email will be added to the contact. | |
AliIM | String | No | Yes | Wangwang contact information | N/A |
DingWebHook | String | No | Yes | DingTalk Webhook | N/A |
SMS | String | No | Yes | Phone number, text message, or phone contact information | The system will receive an activation link for the added or modified mobile phone number, which will be added to the contact only after activation. |
Error code
Fn::GetAtt
ContactName: the name of an alarm contact.
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Describe": {
"Type": "String",
"Description": "The description of the alert contact."
},
"ContactName": {
"Type": "String",
"Description": "The name of the alarm contact."
},
"Channels": {
"Type": "Json"
}
},
"Resources": {
"Contact": {
"Type": "ALIYUN::CMS::Contact",
"Properties": {
"Describe": {
"Ref": "Describe"
},
"ContactName": {
"Ref": "ContactName"
},
"Channels": {
"Ref": "Channels"
}
}
}
},
"Outputs": {
"ContactName": {
"Description": "The name of the alarm contact.",
"Value": {
"Fn::GetAtt": [
"Contact",
"ContactName"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Describe:
Type: String
Description: The description of the alert contact.
ContactName:
Type: String
Description: The name of the alarm contact.
Channels:
Type: Json
Resources:
Contact:
Type: 'ALIYUN::CMS::Contact'
Properties:
Describe:
Ref: Describe
ContactName:
Ref: ContactName
Channels:
Ref: Channels
Outputs:
ContactName:
Description: The name of the alarm contact.
Value:
'Fn::GetAtt':
-Contact
-ContactName