S3 存储桶:遇到不受支持的 属性 NonCurrentVersionTransition

S3 bucket: Encountered unsupported property NonCurrentVersionTransition

我想将此 S3 生命周期规则添加到 CloudFormation 模板:

          - Prefix: "dumps/"
            TagFilters:
              - Key: tag
                Value: value
            ExpirationInDays: 21
            NonCurrentVersionTransitions:
              - TransitionInDays: 3
                StorageClass: "GLACIER"
            Status: Enabled

错误:

Encountered unsupported property NonCurrentVersionTransitions

这两个属性均不受支持:

NonCurrentVersionTransitions

NonCurrentVersionTransition

我关注了这个文档:

https://docs.aws.amazon.com/fr_fr/AWSCloudFormation/latest/UserGuide/aws-properties-s3-bucket-lifecycleconfig-rule.html#cfn-s3-bucket-rule-tagfilters

感谢您的帮助..

我认为这是一个错字问题? CloudFormation 文档说 NoncurrentVersionTransitions,而不是 NonCurrentVersionTransitions