All Products
Search
Document Center

Resource Orchestration Service:ALIYUN::CMS::Contact

Last Updated:Jun 08, 2026

ALIYUN::CMS::Contact is used to create an alert contact in CloudMonitor (CMS).

Syntax

{
  "Type": "ALIYUN::CMS::Contact",
  "Properties": {
    "Describe": String,
    "ContactName": String,
    "Channels": Map
  }
}

Properties

Property

Type

Required

Editable

Description

Constraint

Channels

Map

Yes

Yes

Alert notification channels.

Specify at least one: phone number, email address, DingTalk chatbot webhook URL, or TradeManager ID.

ContactName

String

Yes

No

Alert contact name.

2 to 40 characters long. Can contain letters, digits, periods (.), and underscores (_). Must start with a letter.

Describe

String

Yes

Yes

Description of the alert contact.

None.

Channels syntax

"Channels": {
  "Mail": String,
  "AliIM": String,
  "DingWebHook": String,
  "SMS": String
}

Channels properties

Property

Type

Required

Editable

Description

Constraint

AliIM

String

No

Yes

TradeManager ID.

None.

DingWebHook

String

No

Yes

DingTalk chatbot webhook URL.

None.

Mail

String

No

Yes

Email address of the contact.

After adding or modifying the email address, the recipient must click the activation link in the verification email to join the alert contact list.

SMS

String

No

Yes

Phone number (mobile or landline).

After adding or modifying the phone number, the recipient must complete SMS activation to join the alert contact list.

Return values

Fn::GetAtt

ContactName: alert contact name.

Examples

Note

Replace masked values in the template with your actual values.

YAML format

ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
  Contact:
    Type: ALIYUN::CMS::Contact
    Properties:
      Describe: Test Contact
      ContactName: DemoContact
      Channels:
        Mail: test****@163.com
        DingWebHook: https://webhook.com
        SMS: 1631792327****
Outputs:
  ContactName:
    Description: The name of the alarm contact.
    Value:
      Fn::GetAtt:
        - Contact
        - ContactName

JSON format

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Parameters": {
  },
  "Resources": {
    "Contact": {
      "Type": "ALIYUN::CMS::Contact",
      "Properties": {
        "Describe": "Test Contact",
        "ContactName": "DemoContact",
        "Channels": {
          "Mail": "test****@163.com",
          "DingWebHook": "https://webhook.com",
          "SMS": "1631792327****"
        }
      }
    }
  },
  "Outputs": {
    "ContactName": {
      "Description": "The name of the alarm contact.",
      "Value": {
        "Fn::GetAtt": [
          "Contact",
          "ContactName"
        ]
      }
    }
  }
}