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

**********************
clone_receipt_rule_set
**********************



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

  

  Creates a receipt rule set by cloning an existing one. All receipt rules and configurations are copied to the new receipt rule set and are completely independent of the source rule set.

   

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

   

  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/CloneReceiptRuleSet>`_  


  **Request Syntax**
  ::

    response = client.clone_receipt_rule_set(
        RuleSetName='string',
        OriginalRuleSetName='string'
    )
    
  :type RuleSetName: string
  :param RuleSetName: **[REQUIRED]** 

    The name of the rule set to create. The name must meet the following requirements:

     

    
    * Contain only ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
     
    * Start and end with a letter or number.
     
    * Contain 64 characters or fewer.
    

    

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

    The name of the rule set to clone.

    

  
  
  :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.AlreadyExistsException`

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

  

  **Examples**

  The following example creates a receipt rule set by cloning an existing one:
  ::

    response = client.clone_receipt_rule_set(
        OriginalRuleSetName='RuleSetToClone',
        RuleSetName='RuleSetToCreate',
    )
    
    print(response)

  
  Expected Output:
  ::

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

  