ALIYUN::CMS::ContactGroup类型用于创建报警联系人组。

语法

{
  "Type": "ALIYUN::CMS::ContactGroup",
  "Properties": {
    "Describe": String,
    "ContactGroupName": String,
    "ContactNames": List
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
Describe String 报警联系组描述信息
ContactGroupName String 报警联系组名称
ContactNames List 报警联系人名称 支持添加1~100个报警联系人,以英文逗号(,)分隔。

返回值

Fn::GetAtt

ContactGroupName:报警联系组名称。

示例

JSON格式

{
  "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格式

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