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

Syntax

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

Properties

NameTypeRequiredEditableDescriptionValidity
ContactGroupsStringNoYesThe alert contact group to which alert notifications will be sent.None
GroupNameStringYesYesThe name of the application group to be created.None

Response parameters

Fn::GetAtt

GroupId: the ID of the created application group.

Examples

  • YAMLformat

    ROSTemplateFormatVersion: '2015-09-01'
    Resources:
      MonitorGroup:
        Type: ALIYUN::CMS::MonitorGroup
        Properties:
          GroupName: DemoGroup
    Outputs:
      GroupId:
        Description: 'Application group ID generated after the group is created. '
        Value:
          Fn::GetAtt:
            - MonitorGroup
            - GroupId
  • JSONformat

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Resources": {
        "MonitorGroup": {
          "Type": "ALIYUN::CMS::MonitorGroup",
          "Properties": {
            "GroupName": "DemoGroup"
          }
        }
      },
      "Outputs": {
        "GroupId": {
          "Description": "Application group ID generated after the group is created. ",
          "Value": {
            "Fn::GetAtt": [
              "MonitorGroup",
              "GroupId"
            ]
          }
        }
      }
    }