Atualiza a versão principal de uma instância do Tair (compatível com Redis OSS).
Sintaxe
{
"Type": "ALIYUN::REDIS::UpgradeVersion",
"Properties": {
"InstanceId": String,
"AutoUpgradeOpen": Boolean,
"EffectiveTime": String,
"MajorVersion": String,
"MinorVersion": String
}
}
Propriedades
|
Propriedade |
Tipo |
Obrigatória |
Editável |
Descrição |
Restrição |
|
InstanceId |
String |
Sim |
Não |
ID da instância. |
Nenhuma. |
|
AutoUpgradeOpen |
Boolean |
Não |
Não |
Indica se as atualizações automáticas estão ativadas. |
Nenhuma. |
|
EffectiveTime |
String |
Não |
Não |
Momento em que a atualização entra em vigor. |
Valores válidos:
|
|
MajorVersion |
String |
Não |
Não |
Versão principal de destino da atualização. |
Valores válidos:
|
|
MinorVersion |
String |
Não |
Não |
Versão secundária atual da instância. |
Defina o valor como latest_version. |
Valores de retorno
Fn::GetAtt
Nenhum.
Exemplos
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"
}
}
}