v1

latestOpenAPI 3.0.0Apache 2.0 License2026-07-14218161.2 KB

Writes an object lifecycle policy to a container. If the container already has an object lifecycle policy, the service replaces the existing policy with the new policy. It takes up to 20 minutes for the change to take effect.

For information about how to construct an object lifecycle policy, see Components of an Object Lifecycle Policy.

post/#X-Amz-Target=MediaStore_20170901.PutLifecyclePolicy

Headers

X-Amz-Target'MediaStore_20170901.PutLifecyclePolicy' required

Request body

ContainerNamestring required

The name of the container that you want to assign the object lifecycle policy to.

LifecyclePolicystring required

The object lifecycle policy to apply to the container.

Response

Success

PutLifecyclePolicyOutput required