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

************
disable_rule
************



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

  

  Disables the specified rule. A disabled rule won't match any events, and won't self-trigger if it has a schedule expression.

   

  When you disable a rule, incoming events might continue to match to the disabled rule. Allow a short period of time for changes to take effect.

  

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


  **Request Syntax**
  ::

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

    The name of the rule.

    

  
  :type EventBusName: string
  :param EventBusName: 

    The name or ARN of the event bus associated with the rule. If you omit this, the default event bus is used.

    

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

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

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

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

  