ALIYUN::CMS::MonitorGroup は、アプリケーショングループを作成するために使用されます。
構文
{
"Type": "ALIYUN::CMS::MonitorGroup",
"Properties": {
"ContactGroups": String, // 警告通知が送信されるアラート連絡先グループ。
"GroupName": String // アプリケーショングループの名前。
}
}プロパティ
プロパティ | タイプ | 必須 | 編集可能 | 説明 | 制約 |
GroupName | String | はい | はい | アプリケーショングループの名前。 | なし |
ContactGroups | String | いいえ | はい | アラート通知の送信先となるアラート連絡先グループ。 | なし |
戻り値
Fn::GetAtt
GroupId: アプリケーショングループの ID。
例
YAML 形式
ROSTemplateFormatVersion: '2015-09-01'
Resources:
MonitorGroup:
Type: ALIYUN::CMS::MonitorGroup
Properties:
GroupName: DemoGroup
Outputs:
GroupId:
Description: 'グループ作成後に生成されるアプリケーショングループ ID。' // グループ作成後に生成されるアプリケーショングループID。
Value:
Fn::GetAtt:
- MonitorGroup
- GroupIdJSON 形式
{
"ROSTemplateFormatVersion": "2015-09-01",
"Resources": {
"MonitorGroup": {
"Type": "ALIYUN::CMS::MonitorGroup",
"Properties": {
"GroupName": "DemoGroup"
}
}
},
"Outputs": {
"GroupId": {
"Description": "Application group ID generated after the group is created. ", // グループ作成後に生成されるアプリケーショングループID。
"Value": {
"Fn::GetAtt": [
"MonitorGroup",
"GroupId"
]
}
}
}
}