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

*************************
set_receipt_rule_position
*************************



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

  

  Sets the position of the specified receipt rule in the receipt rule set.

   

  For information about managing receipt rules, 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/SetReceiptRulePosition>`_  


  **Request Syntax**
  ::

    response = client.set_receipt_rule_position(
        RuleSetName='string',
        RuleName='string',
        After='string'
    )
    
  :type RuleSetName: string
  :param RuleSetName: **[REQUIRED]** 

    The name of the receipt rule set that contains the receipt rule to reposition.

    

  
  :type RuleName: string
  :param RuleName: **[REQUIRED]** 

    The name of the receipt rule to reposition.

    

  
  :type After: string
  :param After: 

    The name of the receipt rule after which to place the specified receipt rule.

    

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

    
    ::

      {}
      
    **Response Structure**

    

    - *(dict) --* 

      An empty element returned on a successful request.

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

  
  *   :py:class:`SES.Client.exceptions.RuleDoesNotExistException`

  

  **Examples**

  The following example sets the position of a receipt rule in a receipt rule set:
  ::

    response = client.set_receipt_rule_position(
        After='PutRuleAfterThisRule',
        RuleName='RuleToReposition',
        RuleSetName='MyRuleSet',
    )
    
    print(response)

  
  Expected Output:
  ::

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

  