ALIYUN::ESS::AlarmTaskEnable resource is used to enable a stopped event-triggered task.
Syntax
{
"Type": "ALIYUN::ESS::AlarmTaskEnable",
"Properties": {
"AlarmTaskId": String,
"Enable": Boolean
}
}
Properties
Property | Type | Required | Editable | Description | Constraints |
AlarmTaskId | String | Yes | No | The ID of the event-triggered task. | None. |
Enable | Boolean | Yes | Yes | Specifies whether the feature is enabled. | None. |
Return values
Fn::GetAtt
None
Examples
YAML format
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
AlarmTaskId:
Type: String
Description: The ID of the event-triggered task.
Resources:
AlarmTaskEnable:
Type: ALIYUN::ESS::AlarmTaskEnable
Properties:
Enable: true
AlarmTaskId:
Ref: AlarmTaskId
Outputs: {}
JSON format
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"AlarmTaskId": {
"Type": "String",
"Description": "The ID of the event-triggered task."
}
},
"Resources": {
"AlarmTaskEnable": {
"Type": "ALIYUN::ESS::AlarmTaskEnable",
"Properties": {
"Enable": true,
"AlarmTaskId": {
"Ref": "AlarmTaskId"
}
}
}
},
"Outputs": {}
}