You need to enable JavaScript to run this app.
导航

0007-00000503

最近更新时间2024.03.18 14:51:51

首次发布时间2024.01.05 16:32:17

问题描述

配置的同一条生命周期规则中,或相同前缀的多条规则中,NoncurrentVersionTransitions 字段多个 StorageClass 参数值有重复。

问题原因

配置的同一条生命周期规则中,或相同前缀的多条规则中,NoncurrentVersionTransitions字段多个 StorageClass 参数值有重复。

问题示例
  • 场景一:同一条规则内同时配置了 30 天转低频, 40 天转低频的沉降规则。

    {
        "Rules": [{
          "ID": "id",
          "Prefix": "prefix",
          "Status": "Enabled",
          "NoncurrentVersionTransitions": [
            {
              "StorageClass": "IA",
              "NonCurrentDays": 30
            },
            {
              "StorageClass": "IA",
              "NonCurrentDays": 40
            }
          ]
        }]
    }
    
  • 场景二:多条相同前缀的规则,分别配置了 30 天转低频存储的沉降规则和 40 天转低频存储的沉降规则。

    {
        "Rules": [
            {
                "ID": "id",
                "Prefix": "prefix",
                "Status": "Enabled",
                "NoncurrentVersionTransitions": [
                    {
                        "StorageClass": "IA",
                        "NonCurrentDays": 30
                    }
                ]
            },
            {
                "ID": "id1",
                "Prefix": "prefix",
                "Status": "Enabled",
                "NoncurrentVersionTransitions": [
                    {
                        "StorageClass": "IA",
                        "NonCurrentDays": 40
                    }
                ]
            }
        ]
    }
    

解决方案

NoncurrentVersionTransitions 的多个配置值中 StorageClass 字段保持唯一。