更新时间:2026-10-29 GMT+08:00
分享

CRR.00130037

CRR: The rule should not contain prefix and filter at the same time.

报错描述

CRR: 规则不应同时包含前缀和过滤器。

报错原因

同一个跨区域复制规则中,同时出现Prefix和Filter,并且两者处于同一等级。例如以下错误示例:

<Rule>
    <ID>Rule-1</ID>
    <Status>Enabled</Status>
    <Prefix>exampleprefix</Prefix>
    <Filter>
        <Not>
            <Tag>
                <Key>key1</Key>
                <Value>value1</Value>
            </Tag>
        </Not>
    </Filter>
    <Destination>
        <Bucket>dstbucket</Bucket>
        <AccessControlTranslation>
            <Owner>destination</Owner>
        </AccessControlTranslation>
        <Account>destination-bucket-owner-account-id</Account>
        <StorageClass>STANDARD</StorageClass>
        <DeleteData>Enabled</DeleteData>
    </Destination>      
    <HistoricalObjectReplication>Enabled</HistoricalObjectReplication>
    <DeleteMarker>Enabled</DeleteMarker>
</Rule>

处理建议

同一个规则中不能同时包含同级别的Prefix和Filter,请选择其中一种方式配置过滤条件,使用Prefix或使用Filter元素。

相关文档