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'
)
[REQUIRED]
The name of the rule set to create. The name must:
[REQUIRED]
The name of the rule set to clone.
dict
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': {
'...': '...',
},
}