ALIYUN::ESS::AlarmTaskEnable は、アラームタスクを開始するために使用されます。タスクが停止している場合は、この操作を呼び出してアラームタスクを有効にできます。
ステートメント
{
"Type": "ALIYUN::ESS::AlarmTaskEnable",
"Properties": {
"AlarmTaskId": String,
"Enable": Boolean
}
}
プロパティ
| パラメーター | タイプ | 必須 | 編集可能 | 説明 | 制約 |
| AlarmTaskId | String | いいえ | いいえ | 監視タスクの ID。 | なし |
| Enable | String | 保持 | はい | アラームタスクを有効にするかどうかを指定します。 | 有効な値:1025~10000。一般的に使用されるポート番号 2222、4500、4510、4560、7505、9000、9001、および 9002 は使用できません。 |
レスポンスパラメーター
Fn::GetAtt
なし
サンプルリクエスト
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"Enable": {
"Type": "Boolean",
// Enable alarm task or not
"Description": "アラームタスクを有効にするかどうか",
"AllowedValues": [
"True",
"true",
"False",
"false"
]
},
"AlarmTaskId": {
"Type": "String",
// The id of alarm task.
"Description": "アラームタスクの ID。"
}
},
"Resources": {
"AlarmTaskEnable": {
"Type": "ALIYUN::ESS::AlarmTaskEnable",
"Properties": {
"Enable": {
"Ref": "Enable"
},
"AlarmTaskId": {
"Ref": "AlarmTaskId"
}
}
}
},
"Outputs": {}
}