ALIYUN::ARMS::AlertContactGroup

更新时间:2024-06-20 02:09:53

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

语法

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

属性

属性名称

类型

必须

允许更新

描述

约束

属性名称

类型

必须

允许更新

描述

约束

ContactGroupName

String

报警联系人分组名称。

ContactIds

List

报警联系人分组内的联系人ID。

多个联系人ID以空格分隔。

RegionId

String

地域ID。默认为资源栈的地域ID。

取值:

  • cn-qingdao

  • cn-beijing

  • cn-shanghai

  • cn-hangzhou

  • cn-shenzhen

  • cn-hongkong

  • ap-southeast-1

返回值

Fn::GetAtt

ContactGroupId:报警联系人分组ID。

示例

YAML格式
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
{
  "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"
        ]
      }
    }
  }
}
  • 本页导读 (1)
  • 语法
  • 属性
  • 返回值
  • 示例
AI助理

点击开启售前

在线咨询服务

你好,我是AI助理

可以解答问题、推荐解决方案等