ALIYUN::ARMS::AlertContactGroup は、アラート連絡グループを作成するために使用されます。
構文
{
"Type": "ALIYUN::ARMS::AlertContactGroup",
"Properties": {
"ContactIds": List,
"RegionId": String,
"ContactGroupName": String
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
ContactGroupName | String | はい | はい | アラート連絡グループの名前。 | なし。 |
ContactIds | List | はい | はい | アラート連絡グループ内の連絡先の ID。 | 複数の連絡先 ID はスペースで区切ります。 |
RegionId | String | いいえ | いいえ | アラート連絡グループのリージョン ID。デフォルトでは、スタックのリージョン ID が使用されます。 | 有効な値:
|
戻り値
Fn::GetAtt
ContactGroupId: アラート連絡グループの ID。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
ContactIds:
Type: Json
Description: 'アラート連絡先 ID のリスト。'
Resources:
AlertContactGroup:
Type: ALIYUN::ARMS::AlertContactGroup
Properties:
ContactIds:
Ref: ContactIds
ContactGroupName: TestContactGroup
Outputs:
ContactGroupId:
Description: 作成したアラート連絡グループの ID。
Value:
Fn::GetAtt:
- AlertContactGroup
- ContactGroupIdJSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"ContactIds": {
"Type": "Json",
"Description": "アラート連絡先 ID のリスト。"
}
},
"Resources": {
"AlertContactGroup": {
"Type": "ALIYUN::ARMS::AlertContactGroup",
"Properties": {
"ContactIds": {
"Ref": "ContactIds"
},
"ContactGroupName": "TestContactGroup"
}
}
},
"Outputs": {
"ContactGroupId": {
"Description": "作成したアラート連絡グループの ID。",
"Value": {
"Fn::GetAtt": [
"AlertContactGroup",
"ContactGroupId"
]
}
}
}
}