ALIYUN::ARMS::AlertContactGroup is used to create an alert contact group.

Syntax

{
  "Type": "ALIYUN::ARMS::AlertContactGroup",
  "Properties": {
    "ContactIds": List,
    "RegionId": String,
    "ContactGroupName": String
  }
}

Properties

PropertyTypeRequiredEditableDescriptionConstraint
ContactIdsListYesYesThe IDs of contacts within the alert contact group.Separate multiple contact IDs with spaces.
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
ContactGroupNameStringYesYesThe name of the alert contact group.None.

Response parameters

Fn::GetAtt

ContactGroupId: the ID of the alert contact group.

Examples

  • YAMLformat

    ROSTemplateFormatVersion: '2015-09-01'
    Parameters:
      ContactIds:
        Type: Json
        Description: 'The list of alert contact ID. '
    Resources:
      AlertContactGroup:
        Type: ALIYUN::ARMS::AlertContactGroup
        Properties:
          ContactIds:
            Ref: ContactIds
          ContactGroupName: TestContactGroup
    Outputs:
      ContactGroupId:
        Description: The ID of the alert contact group that you created.
        Value:
          Fn::GetAtt:
            - AlertContactGroup
            - ContactGroupId
  • JSONformat

    {
      "ROSTemplateFormatVersion": "2015-09-01",
      "Parameters": {
        "ContactIds": {
          "Type": "Json",
          "Description": "The list of alert contact ID. "
        }
      },
      "Resources": {
        "AlertContactGroup": {
          "Type": "ALIYUN::ARMS::AlertContactGroup",
          "Properties": {
            "ContactIds": {
              "Ref": "ContactIds"
            },
            "ContactGroupName": "TestContactGroup"
          }
        }
      },
      "Outputs": {
        "ContactGroupId": {
          "Description": "The ID of the alert contact group that you created.",
          "Value": {
            "Fn::GetAtt": [
              "AlertContactGroup",
              "ContactGroupId"
            ]
          }
        }
      }
    }