すべてのプロダクト
Search
ドキュメントセンター

Resource Orchestration Service:ALIYUN::ARMS::AlertContact

最終更新日:Jan 16, 2025

ALIYUN::ARMS::AlertContact は、アラート連絡先を作成するために使用されます。

構文

{
  "Type": "ALIYUN::ARMS::AlertContact",
  "Properties": {
    "DingRobotWebhookUrl": String,
    "PhoneNum": String,
    "RegionId": String,
    "SystemNoc": Boolean,
    "ContactName": String,
    "Email": String
  }
}

プロパティ

プロパティ

タイプ

必須

編集可能

説明

制約

ContactName

String

はい

はい

アラート連絡先の名前。

なし。

DingRobotWebhookUrl

String

いいえ

はい

DingTalk チャットボットの webhook URL。

DingTalk チャットボットのセキュリティ設定のカスタムキーワードフィールドに「alert」と入力します。

Email

String

いいえ

はい

アラート連絡先のメールアドレス。

なし。

PhoneNum

String

いいえ

はい

アラート連絡先の電話番号。

Email、PhoneNum、DingRobotWebhookUrl のプロパティのうち、少なくとも 1 つを指定する必要があります。

RegionId

String

いいえ

いいえ

リージョン ID。デフォルトでは、スタックのリージョン ID が使用されます。

有効な値:

  • cn-qingdao

  • cn-beijing

  • cn-shanghai

  • cn-hangzhou

  • cn-shenzhen

  • cn-hongkong

  • ap-southeast-1

SystemNoc

Boolean

いいえ

はい

システム通知を受信するかどうかを指定します。

なし。

戻り値

Fn::GetAtt

ContactId: アラート連絡先の ID。

説明

Email プロパティなどのプロパティのマスクされた値は、ビジネス要件に基づいて変更する必要があります。

YAML 形式

ROSTemplateFormatVersion: '2015-09-01'
Resources:
  AlertContact:
    Type: ALIYUN::ARMS::AlertContact
    Properties:
      ContactName: DemoContact
      Email: Demo****@163.com
      RegionId:
        Ref: ALIYUN::Region
Outputs:
  ContactId:
    Description: 作成したアラート連絡先の ID。
    Value:
      Fn::GetAtt:
        - AlertContact
        - ContactId

JSON 形式

{
  "ROSTemplateFormatVersion": "2015-09-01",
  "Resources": {
    "AlertContact": {
      "Type": "ALIYUN::ARMS::AlertContact",
      "Properties": {
        "ContactName": "DemoContact",
        "Email": "Demo****@163.com",
        "RegionId": {
          "Ref": "ALIYUN::Region"
        }
      }
    }
  },
  "Outputs": {
    "ContactId": {
      "Description": "作成したアラート連絡先の ID。",
      "Value": {
        "Fn::GetAtt": [
          "AlertContact",
          "ContactId"
        ]
      }
    }
  }
}