:doc:`SES <../../ses>` / Client / set_active_receipt_rule_set

***************************
set_active_receipt_rule_set
***************************



.. py:method:: SES.Client.set_active_receipt_rule_set(**kwargs)

  

  Sets the specified receipt rule set as the active receipt rule set.

   

  .. note::

    

    To disable your email-receiving through Amazon SES completely, you can call this operation with ``RuleSetName`` set to null.

    

   

  For information about managing receipt rule sets, see the `Amazon SES Developer Guide <https://docs.aws.amazon.com/ses/latest/dg/receiving-email-receipt-rules-console-walkthrough.html>`__.

   

  You can execute this operation no more than once per second.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/email-2010-12-01/SetActiveReceiptRuleSet>`_  


  **Request Syntax**
  ::

    response = client.set_active_receipt_rule_set(
        RuleSetName='string'
    )
    
  :type RuleSetName: string
  :param RuleSetName: 

    The name of the receipt rule set to make active. Setting this value to null disables all email receiving.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      An empty element returned on a successful request.

      
  
  **Exceptions**
  
  *   :py:class:`SES.Client.exceptions.RuleSetDoesNotExistException`

  

  **Examples**

  The following example sets the active receipt rule set:
  ::

    response = client.set_active_receipt_rule_set(
        RuleSetName='RuleSetToActivate',
    )
    
    print(response)

  
  Expected Output:
  ::

    {
        'ResponseMetadata': {
            '...': '...',
        },
    }

  