ALIYUN::REDIS::UpgradeVersion类型用于升级云数据库 Tair(兼容 Redis)实例的大版本。
语法
{
"Type": "ALIYUN::REDIS::UpgradeVersion",
"Properties": {
"InstanceId": String,
"AutoUpgradeOpen": Boolean,
"EffectiveTime": String,
"MajorVersion": String,
"MinorVersion": String
}
}
属性
属性名称 | 类型 | 必须 | 允许更新 | 描述 | 约束 |
InstanceId | String | 是 | 否 | 实例 ID。 | 无 |
AutoUpgradeOpen | Boolean | 否 | 否 | 是否启用自动升级。 | 无 |
EffectiveTime | String | 否 | 否 | 升级执行时间。 | 取值:
|
MajorVersion | String | 否 | 否 | 升级实例版本。 | 取值:
|
MinorVersion | String | 否 | 否 | 实例当前的小版本。 | 取值:
|
返回值
Fn::GetAtt
无
示例
ROSTemplateFormatVersion: '2015-09-01'
Parameters:
EffectiveTime:
AllowedValues:
- Immediately
- MaintainTime
Description:
en: 'The time when the upgrade is effective. Value: Immediately|MaintainTime,
default: Immediately.'
Required: false
Type: String
InstanceId:
Description:
en: The id of the instance.
Required: true
Type: String
MajorVersion:
AllowedValues:
- '5.0'
- '6.0'
- '7.0'
Description:
en: Upgrade the major version of the instance.
Required: false
Type: String
Resources:
UpgradeVersion:
Properties:
EffectiveTime:
Ref: EffectiveTime
InstanceId:
Ref: InstanceId
MajorVersion:
Ref: MajorVersion
Type: ALIYUN::REDIS::UpgradeVersion
{
"ROSTemplateFormatVersion": "2015-09-01",
"Parameters": {
"EffectiveTime": {
"AllowedValues": [
"Immediately",
"MaintainTime"
],
"Description": {
"en": "The time when the upgrade is effective. Value: Immediately|MaintainTime, default: Immediately."
},
"Required": false,
"Type": "String"
},
"InstanceId": {
"Description": {
"en": "The id of the instance."
},
"Required": true,
"Type": "String"
},
"MajorVersion": {
"AllowedValues": [
"5.0",
"6.0",
"7.0"
],
"Description": {
"en": "Upgrade the major version of the instance."
},
"Required": false,
"Type": "String"
}
},
"Resources": {
"UpgradeVersion": {
"Properties": {
"EffectiveTime": {
"Ref": "EffectiveTime"
},
"InstanceId": {
"Ref": "InstanceId"
},
"MajorVersion": {
"Ref": "MajorVersion"
}
},
"Type": "ALIYUN::REDIS::UpgradeVersion"
}
}
}
该文章对您有帮助吗?