**To create an object lifecycle policy** The following ``put-lifecycle-policy`` example attaches an object lifecycle policy to the specified container. This enables you to specify how long the service should store objects in your container. MediaStore deletes objects in the container once they reach their expiration date, as indicated in the policy, which is in the file named ``LiveEventsLifecyclePolicy.json``. :: aws mediastore put-lifecycle-policy \ --container-name ExampleContainer \ --lifecycle-policy file://ExampleLifecyclePolicy.json This command produces no output. For more information, see `Adding an Object Lifecycle Policy to a Container <https://docs.aws.amazon.com/mediastore/latest/ug/policies-object-lifecycle-add.html>`__ in the *AWS Elemental MediaStore User Guide*.
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
create-container.rst | File | 651 B | 0644 |
|
delete-container-policy.rst | File | 573 B | 0644 |
|
delete-container.rst | File | 447 B | 0644 |
|
delete-cors-policy.rst | File | 472 B | 0644 |
|
delete-lifecycle-policy.rst | File | 540 B | 0644 |
|
describe-container.rst | File | 804 B | 0644 |
|
describe-object.rst | File | 772 B | 0644 |
|
get-container-policy.rst | File | 1.19 KB | 0644 |
|
get-cors-policy.rst | File | 846 B | 0644 |
|
get-lifecycle-policy.rst | File | 1.2 KB | 0644 |
|
get-object.rst | File | 1.33 KB | 0644 |
|
list-containers.rst | File | 1.17 KB | 0644 |
|
list-items.rst | File | 1.71 KB | 0644 |
|
list-tags-for-resource.rst | File | 723 B | 0644 |
|
put-container-policy.rst | File | 580 B | 0644 |
|
put-cors-policy.rst | File | 1 KB | 0644 |
|
put-lifecycle-policy.rst | File | 814 B | 0644 |
|
put-object.rst | File | 1.03 KB | 0644 |
|
start-access-logging.rst | File | 465 B | 0644 |
|
stop-access-logging.rst | File | 468 B | 0644 |
|
tag-resource.rst | File | 555 B | 0644 |
|
untag-resource.rst | File | 520 B | 0644 |
|