remove_permission

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.

See also: AWS API Documentation

Request Syntax

response = client.remove_permission(
    StatementId='string',
    RemoveAllPermissions=True|False,
    EventBusName='string'
)
Parameters
  • StatementId (string) -- The statement ID corresponding to the account that is no longer allowed to put events to the default event bus.
  • RemoveAllPermissions (boolean) -- Specifies whether to remove all permissions.
  • EventBusName (string) -- The name of the event bus to revoke permissions for. If you omit this, the default event bus is used.
Returns

None

Exceptions

  • EventBridge.Client.exceptions.ResourceNotFoundException
  • EventBridge.Client.exceptions.InternalException
  • EventBridge.Client.exceptions.ConcurrentModificationException
  • EventBridge.Client.exceptions.OperationDisabledException