MediaStore.Client.
get_lifecycle_policy
(**kwargs)¶Retrieves the object lifecycle policy that is assigned to a container.
See also: AWS API Documentation
Request Syntax
response = client.get_lifecycle_policy(
ContainerName='string'
)
[REQUIRED]
The name of the container that the object lifecycle policy is assigned to.
{
'LifecyclePolicy': 'string'
}
Response Structure
The object lifecycle policy that is assigned to the container.
Exceptions
MediaStore.Client.exceptions.ContainerInUseException
MediaStore.Client.exceptions.ContainerNotFoundException
MediaStore.Client.exceptions.PolicyNotFoundException
MediaStore.Client.exceptions.InternalServerError