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

PropertyTypeRequiredEditableDescriptionConstraint
DingRobotWebhookUrlStringNoYesThe webhook URL of DingTalk chatbot. Enter alert in the custom keyword field of DingTalk chatbot security settings.
EmailStringNoYesThe email address of the alert contact.None.
PhoneNumStringNoYesThe mobile phone number of the alert contact.You must specify at least one of the DingRobotWebhookUrl, Email, and PhoneNum parameters.
RegionIdStringNoNoThe region ID of the alert contact. The default value of this parameter is the region ID of the stack.Valid values:
  • cn-qingdao
  • cn-beijing
  • cn-shanghai
  • cn-hangzhou
  • cn-shenzhen
  • cn-hongkong
  • ap-southeast-1
SystemNocBooleanNoYesSpecifies whether to receive system notifications.None.
ContactNameStringYesYesThe name of the alert contact.None.

Response parameters

Fn::GetAtt

ContactId: the ID of the alert contact.

Examples

  • YAMLformat

    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
  • JSONformat

    {
      "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"
            ]
          }
        }
      }
    }