CmdID

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

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

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

1 in the AWS CLI reference
--container-nameThe name of the container that the object lifecycle policy is assigned to.