全部產品
Search
文件中心

Resource Orchestration Service:ALIYUN::ARMS::AlertContactGroup

更新時間:Jun 21, 2024

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

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