ALIYUN::CMS::MonitorGroup is used to create an application group.

Syntax

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

Properties

Name Type Required Editable Description Validity
ContactGroups String No Yes The alert contact group to which alert notifications will be sent. None
GroupName String Yes Yes The name of the application group to be created. None

Response parameters

Fn::GetAtt

  • GroupId: the ID of the created application group.

Examples

{
  "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": "The application group ID generated after the group is created. ",
      "Value": {
        "Fn::GetAtt": [
          "MonitorGroup",
          "GroupId"
        ]
      }
    }
  }
}