:doc:`MediaStore <../../mediastore>` / Client / get_lifecycle_policy

********************
get_lifecycle_policy
********************



.. py:method:: MediaStore.Client.get_lifecycle_policy(**kwargs)

  

  Retrieves the object lifecycle policy that is assigned to a container.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mediastore-2017-09-01/GetLifecyclePolicy>`_  


  **Request Syntax**
  ::

    response = client.get_lifecycle_policy(
        ContainerName='string'
    )
    
  :type ContainerName: string
  :param ContainerName: **[REQUIRED]** 

    The name of the container that the object lifecycle policy is assigned to.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'LifecyclePolicy': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **LifecyclePolicy** *(string) --* 

        The object lifecycle policy that is assigned to the container.

        
  
  **Exceptions**
  
  *   :py:class:`MediaStore.Client.exceptions.ContainerInUseException`

  
  *   :py:class:`MediaStore.Client.exceptions.ContainerNotFoundException`

  
  *   :py:class:`MediaStore.Client.exceptions.PolicyNotFoundException`

  
  *   :py:class:`MediaStore.Client.exceptions.InternalServerError`

  