ALIYUN::CMS::MonitorGroup类型用于创建一个应用分组。

语法

{
  "Type": "ALIYUN::CMS::MonitorGroup",
  "Properties": {
    "ContactGroups": String,
    "GroupName": String
  }
}

属性

属性名称 类型 必须 允许更新 描述 约束
ContactGroups String 报警联系人组。应用分组的报警通知会发送给此处指定的报警联系人组。 无。
GroupName String 应用分组名称。 无。

返回值

Fn::GetAtt

  • GroupId: 创建组以后生成的应用分组ID。

示例

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "MonitorGroup": {
      "Type": "ALIYUN::CMS::MonitorGroup",
      "Properties": {
        "ContactGroups": {
          "Ref": "ContactGroups"
        },
        "GroupName": {
          "Ref": "GroupName"
        }
      }
    }
  },
  "Parameters": {
    "ContactGroups": {
      "Type": "String",
      "Description": "The alert contact group. Alert notifications for the application group are sent to\nthe specified alert contact group."
    },
    "GroupName": {
      "Type": "String",
      "Description": "The name of the application group."
    }
  },
  "Outputs": {
    "GroupId": {
      "Description": "Application group ID generated after the group is created. ",
      "Value": {
        "Fn::GetAtt": [
          "MonitorGroup",
          "GroupId"
        ]
      }
    }
  }
}