ALIYUN::CMS::ContactGroup is used to create an alarm contact group.
Syntax
{
"Type": "ALIYUN::CMS::ContactGroup",
"Properties": {
"Describe": String,
"ContactGroupName": String,
"ContactNames": List
}
}
Properties
Parameter | Type | Required | Editable | Description | Constraint |
---|---|---|---|---|---|
Describe | String | Yes | Yes | Alert contact group description | N/A |
ContactGroupName | String | Yes | No | Alert contact group name | N/A |
ContactNames | List | Yes | Yes | Alert contact group description | You can add 1 to 100 alert contacts. Separate multiple alert contacts with commas (,). |
Error code
Fn::GetAtt
ContactGroupName: The name of the alert contact group.
Examples
JSON
format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Describe": {
"Type": "String",
"Description": "The description of the alert contact group."
},
"ContactGroupName": {
"Type": "String",
"Description": "The name of the alert contact group."
},
"ContactNames": {
"Type": "Json",
"Description": "The name of the alert contact.",
"MinLength": 1,
"MaxLength": 100
}
},
"Resources": {
"ContactGroup": {
"Type": "ALIYUN::CMS::ContactGroup",
"Properties": {
"Describe": {
"Ref": "Describe"
},
"ContactGroupName": {
"Ref": "ContactGroupName"
},
"ContactNames": {
"Ref": "ContactNames"
}
}
}
},
"Outputs": {
"ContactGroupName": {
"Description": "The name of the alert contact group.",
"Value": {
"Fn::GetAtt": [
"ContactGroup",
"ContactGroupName"
]
}
}
}
}
YAML
format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
Describe:
Type: String
Description: The description of the alert contact group.
ContactGroupName:
Type: String
Description: The name of the alert contact group.
ContactNames:
Type: Json
Description: The name of the alert contact.
MinLength: 1
MaxLength: 100
Resources:
ContactGroup:
Type: 'ALIYUN::CMS::ContactGroup'
Properties:
Describe:
Ref: Describe
ContactGroupName:
Ref: ContactGroupName
ContactNames:
Ref: ContactNames
Outputs:
ContactGroupName:
Description: The name of the alert contact group.
Value:
'Fn::GetAtt':
-ContactGroup
-ContactGroupName