:doc:`Lambda <../../lambda>` / Client / get_layer_version_policy

************************
get_layer_version_policy
************************



.. py:method:: Lambda.Client.get_layer_version_policy(**kwargs)

  

  Returns the permission policy for a version of an `Lambda layer <https://docs.aws.amazon.com/lambda/latest/dg/configuration-layers.html>`__. For more information, see  AddLayerVersionPermission.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/lambda-2015-03-31/GetLayerVersionPolicy>`_  


  **Request Syntax**
  ::

    response = client.get_layer_version_policy(
        LayerName='string',
        VersionNumber=123
    )
    
  :type LayerName: string
  :param LayerName: **[REQUIRED]** 

    The name or Amazon Resource Name (ARN) of the layer.

    

  
  :type VersionNumber: integer
  :param VersionNumber: **[REQUIRED]** 

    The version number.

    

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

    
    ::

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

    

    - *(dict) --* 
      

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

        The policy document.

        
      

      - **RevisionId** *(string) --* 

        A unique identifier for the current revision of the policy.

        
  
  **Exceptions**
  
  *   :py:class:`Lambda.Client.exceptions.InvalidParameterValueException`

  
  *   :py:class:`Lambda.Client.exceptions.ServiceException`

  
  *   :py:class:`Lambda.Client.exceptions.TooManyRequestsException`

  
  *   :py:class:`Lambda.Client.exceptions.ResourceNotFoundException`

  