ALIYUN::CMS::Contact は、アラート連絡先を作成するために使用されます。
構文
{
"Type": "ALIYUN::CMS::Contact",
"Properties": {
"Describe": String, // 説明
"ContactName": String, // 連絡先名
"Channels": Map // チャネル
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
Channels | Map | はい | はい | アラート連絡先の連絡方法。 | 電話番号、メールアドレス、DingTalkチャットボットのwebhook URL、TradeManager ID のうち少なくとも 1 つを追加する必要があります。 |
ContactName | String | はい | いいえ | アラート連絡先の名前。 | 名前は 2 ~ 40 文字で、英字、数字、ピリオド(.)、アンダースコア(_) を使用できます。英字で始まる必要があります。 |
Describe | String | はい | はい | 説明。 | なし。 |
Channels 構文
"Channels": {
"Mail": String, // メールアドレス
"AliIM": String, // TradeManager ID
"DingWebHook": String, // DingTalk チャットボットの webhook URL
"SMS": String // 電話番号
}Channels プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
AliIM | String | いいえ | はい | TradeManager ID。 | なし。 |
DingWebHook | String | いいえ | はい | DingTalk チャットボットの webhook URL。 | なし。 |
String | いいえ | はい | メールアドレス。 | メールアドレスを追加または変更した後、受信者はアクティベーションリンクを含むメールを受信します。受信者がアクティベーションを完了した後でのみ、システムは受信者をアラート連絡先のリストに追加します。 | |
SMS | String | いいえ | はい | 携帯電話番号、テキストメッセージ、または固定電話番号。 | 電話番号を追加または変更した後、受信者はアクティベーションリンクを含むテキストメッセージを受信します。受信者がアクティベーションを完了した後でのみ、システムは受信者をアラート連絡先のリストに追加します。 |
戻り値
Fn::GetAtt
ContactName: アラート連絡先の名前。
例
説明
テンプレート内のプロパティのマスクされた値は、ビジネス要件に基づいて変更する必要があります。
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters: {}
Resources:
Contact:
Type: ALIYUN::CMS::Contact
Properties:
Describe: Test Contact
ContactName: DemoContact
Channels:
Mail: test****@163.com
DingWebHook: https://webhook.com
SMS: 1631792327****
Outputs:
ContactName:
Description: The name of the alarm contact. # アラーム連絡先の名前。
Value:
Fn::GetAtt:
- Contact
- ContactNameJSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
},
"Resources": {
"Contact": {
"Type": "ALIYUN::CMS::Contact",
"Properties": {
"Describe": "Test Contact",
"ContactName": "DemoContact",
"Channels": {
"Mail": "test****@163.com",
"DingWebHook": "https://webhook.com",
"SMS": "1631792327****"
}
}
}
},
"Outputs": {
"ContactName": {
"Description": "The name of the alarm contact.", // アラーム連絡先の名前。
"Value": {
"Fn::GetAtt": [
"Contact",
"ContactName"
]
}
}
}
}