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

*******************************
remove_layer_version_permission
*******************************



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

  

  Removes a statement from the permissions 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/RemoveLayerVersionPermission>`_  


  **Request Syntax**
  ::

    response = client.remove_layer_version_permission(
        LayerName='string',
        VersionNumber=123,
        StatementId='string',
        RevisionId='string'
    )
    
  :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.

    

  
  :type StatementId: string
  :param StatementId: **[REQUIRED]** 

    The identifier that was specified when the statement was added.

    

  
  :type RevisionId: string
  :param RevisionId: 

    Only update the policy if the revision ID matches the ID specified. Use this option to avoid modifying a policy that has changed since you last read it.

    

  
  
  :returns: None
  **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`

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

  

  **Examples**

  The following example deletes permission for an account to configure a layer version.
  ::

    response = client.remove_layer_version_permission(
        LayerName='my-layer',
        StatementId='xaccount',
        VersionNumber=1,
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  