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

********************
get_container_policy
********************



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

  

  Retrieves the access policy for the specified container. For information about the data that is included in an access policy, see the `AWS Identity and Access Management User Guide <https://aws.amazon.com/documentation/iam/>`__.

  

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


  **Request Syntax**
  ::

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

    The name of the container.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **Policy** *(string) --* 

        The contents of the access policy.

        
  
  **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`

  