CmdID / aws / aws mediastore
aws mediastore get-lifecycle-policy
Retrieves the object lifecycle policy that is assigned to a container. AWS CLI reference
1 example 1 option Its page in the AWS CLI reference
Examples
To view an object lifecycle policy
The following get-lifecycle-policy example displays the object lifecycle policy attached to the specified container.
aws mediastore get-lifecycle-policy --container-name LiveEventsIdentify--container-nameThe name of the container that the object lifecycle policy is assigned to.Its output
{
"LifecyclePolicy": "{\"rules\":[{\"definition\":{\"path\":[{\"prefix\":\"Football/\"},{\"prefix\":\"Baseball/\"}],\"days_since_create\":[{\"numeric\":[\">\",28]}]},\"action\":\"EXPIRE\"}]}"
}Options
--container-nameThe name of the container that the object lifecycle policy is assigned to.