:doc:`EventBridge <../../events>` / Client / remove_permission

*****************
remove_permission
*****************



.. py:method:: EventBridge.Client.remove_permission(**kwargs)

  

  Revokes the permission of another Amazon Web Services account to be able to put events to the specified event bus. Specify the account to revoke by the ``StatementId`` value that you associated with the account when you granted it permission with ``PutPermission``. You can find the ``StatementId`` by using `DescribeEventBus <https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_DescribeEventBus.html>`__.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/eventbridge-2015-10-07/RemovePermission>`_  


  **Request Syntax**
  ::

    response = client.remove_permission(
        StatementId='string',
        RemoveAllPermissions=True|False,
        EventBusName='string'
    )
    
  :type StatementId: string
  :param StatementId: 

    The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.

    

  
  :type RemoveAllPermissions: boolean
  :param RemoveAllPermissions: 

    Specifies whether to remove all permissions.

    

  
  :type EventBusName: string
  :param EventBusName: 

    The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.

    

  
  
  :returns: None
  **Exceptions**
  
  *   :py:class:`EventBridge.Client.exceptions.ResourceNotFoundException`

  
  *   :py:class:`EventBridge.Client.exceptions.InternalException`

  
  *   :py:class:`EventBridge.Client.exceptions.ConcurrentModificationException`

  
  *   :py:class:`EventBridge.Client.exceptions.OperationDisabledException`

  