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

***********************
deactivate_event_source
***********************



.. py:method:: EventBridge.Client.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 <https://docs.aws.amazon.com/eventbridge/latest/APIReference/API_ActivateEventSource.html>`__.

  

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


  **Request Syntax**
  ::

    response = client.deactivate_event_source(
        Name='string'
    )
    
  :type Name: string
  :param Name: **[REQUIRED]** 

    The name of the partner event source to deactivate.

    

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

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

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

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

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

  