ALIYUN::REDIS::UpgradeVersion

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

升级执行时间。

取值:

  • Immediately:立即执行,默认值。

  • MaintainTime:在可维护时间段执行。

MajorVersion

String

升级实例版本。

取值:

  • 云原生版实例可升级的大版本取值:6.0 或 7.0。

  • 经典版实例可升级的大版本取值:4.0(不推荐)或 5.0。

MinorVersion

String

实例当前的小版本。

取值:

  • latest_version

返回值

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"
    }
  }
}