オブジェクトライフサイクルポリシーの例: 複数のルール - AWS Elemental MediaStore

オブジェクトライフサイクルポリシーの例: 複数のルール

次のポリシーは、MediaStore が次のことを行うことを指定します。

  • AwardsShow フォルダに保存されているオブジェクトを、30 日後に低頻度アクセス (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" } ] }