ALIYUN::ARMS::AlertContactGroup类型用于创建报警联系人分组。

语法

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

属性

属性名称类型必须允许更新描述约束
ContactIdsList报警联系人分组内的联系人ID。多个联系人ID以空格分隔。
RegionIdString地域ID。默认为资源栈的地域ID。取值:
  • cn-qingdao
  • cn-beijing
  • cn-shanghai
  • cn-hangzhou
  • cn-shenzhen
  • cn-hongkong
  • ap-southeast-1
ContactGroupNameString报警联系人分组名称。

返回值

Fn::GetAtt

ContactGroupId:报警联系人分组ID。

示例

  • YAML格式

    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
  • JSON格式

    {
      "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"
            ]
          }
        }
      }
    }