deactivate_event_source

deactivate_event_source(**kwargs)

You can use this operation to temporarily stop receiving events from the specified partner event source. The matching event bus is not deleted.

When you deactivate a partner event source, the source goes into PENDING state. If it remains in PENDING state for more than two weeks, it is deleted.

To activate a deactivated partner event source, use ActivateEventSource.

See also: AWS API Documentation

Request Syntax

response = client.deactivate_event_source(
    Name='string'
)
Parameters
Name (string) --

[REQUIRED]

The name of the partner event source to deactivate.

Returns
None

Exceptions

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