:doc:`EFS <../../efs>` / Client / describe_file_system_policy

***************************
describe_file_system_policy
***************************



.. py:method:: EFS.Client.describe_file_system_policy(**kwargs)

  

  Returns the ``FileSystemPolicy`` for the specified EFS file system.

   

  This operation requires permissions for the ``elasticfilesystem:DescribeFileSystemPolicy`` action.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/elasticfilesystem-2015-02-01/DescribeFileSystemPolicy>`_  


  **Request Syntax**
  ::

    response = client.describe_file_system_policy(
        FileSystemId='string'
    )
    
  :type FileSystemId: string
  :param FileSystemId: **[REQUIRED]** 

    Specifies which EFS file system to retrieve the ``FileSystemPolicy`` for.

    

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

    
    ::

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

    

    - *(dict) --* 
      

      - **FileSystemId** *(string) --* 

        Specifies the EFS file system to which the ``FileSystemPolicy`` applies.

        
      

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

        The JSON formatted ``FileSystemPolicy`` for the EFS file system.

        
  
  **Exceptions**
  
  *   :py:class:`EFS.Client.exceptions.BadRequest`

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

  
  *   :py:class:`EFS.Client.exceptions.FileSystemNotFound`

  
  *   :py:class:`EFS.Client.exceptions.PolicyNotFound`

  