支援終止通知:2025 年 11 月 13 日, AWS 將停止對 AWS Elemental MediaStore 的支援。2025 年 11 月 13 日之後,您將無法再存取 MediaStore 主控台或 MediaStore 資源。如需詳細資訊,請造訪此部落格文章
本文為英文版的機器翻譯版本,如內容有任何歧義或不一致之處,概以英文版為準。
範例物件生命週期政策:多重規則
下列政策指定 MediaStore 執行下列動作:
-
在物件存留期達 30 天後,將存放在
AwardsShow
資料夾中的物件移動到不常存取 (IA) 儲存體方案。 -
刪除副檔名為
m3u8
並且存放在Football
資料夾中超過 20 秒的物件。 -
刪除存放在
April
資料夾中超過 10 天的物件。 -
刪除副檔名為
ts
,且存放在Program
資料夾中超過 5 天的物件。
{ "rules": [ { "definition": { "path": [ {"prefix": "AwardsShow/"} ], "days_since_create": [ {"numeric": [ ">=" , 30 ]} ] }, "action": "ARCHIVE" }, { "definition": { "path": [ {"wildcard": "Football/*.m3u8"} ], "seconds_since_create": [ {"numeric": [ ">", 20 ]} ] }, "action": "EXPIRE" }, { "definition": { "path": [ {"prefix": "April"} ], "days_since_create": [ {"numeric": [ ">", 10 ]} ] }, "action": "EXPIRE" }, { "definition": { "path": [ {"wildcard": "Program/*.ts"} ], "days_since_create": [ {"numeric": [ ">", 5 ]} ] }, "action": "EXPIRE" } ] }