SES / Client / create_receipt_rule_set

create_receipt_rule_set#

SES.Client.create_receipt_rule_set(**kwargs)#

Creates an empty receipt rule set.

For information about setting up receipt 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.create_receipt_rule_set(
    RuleSetName='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.

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

    An empty element returned on a successful request.

Exceptions

  • SES.Client.exceptions.AlreadyExistsException

  • SES.Client.exceptions.LimitExceededException

Examples

The following example creates an empty receipt rule set:

response = client.create_receipt_rule_set(
    RuleSetName='MyRuleSet',
)

print(response)

Expected Output:

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