SES / Client / clone_receipt_rule_set
clone_receipt_rule_set#
- 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.
You can execute this operation no more than once per second.
See also: AWS API Documentation
Request Syntax
response = client.clone_receipt_rule_set( RuleSetName='string', OriginalRuleSetName='string' )
- Parameters:
RuleSetName (string) –
[REQUIRED]
The name of the rule set to create. The name must:
This value can only contain ASCII letters (a-z, A-Z), numbers (0-9), underscores (_), or dashes (-).
Start and end with a letter or number.
Contain less than 64 characters.
OriginalRuleSetName (string) –
[REQUIRED]
The name of the rule set to clone.
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
An empty element returned on a successful request.
Exceptions
SES.Client.exceptions.RuleSetDoesNotExistException
SES.Client.exceptions.AlreadyExistsException
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': { '...': '...', }, }